Once you get a working version, it can often be simplified. So maybe somebody ....
Linda -----Original Message----- From: Programming <[email protected]> On Behalf Of Linda Alvord Sent: Tuesday, September 11, 2018 10:46 PM To: [email protected] Subject: Re: [Jprogramming] [Jpr Jim, I just translated that old pmt into an explicit version which contains y and is monadic. As you learn the J vocabulary this will become readable. J is executed from right to left so start from 1{y. PMT=: 13 :'(2}y)*((0{y) % 1200) * ((1 + (0{y) % 1200) ^ 1{y) % ((1 + (0{y) % 1200) ^ 1{y) - 1' A=:5.75 240 12500 PMT A 87.7604 If it can, 13 : will reply in J's tacit language. PMT returns a tacit response. 2} * (1200 %~ 0 { ]) * ((1 + 1200 %~ 0 { ]) ^ 1 { ]) % 1 -~ (1 + 1200 %~ 0 { ]) ^ 1 { ] Notice %~ , it shows you that your explicit order could be improved. Now, chop it into words. This is "J speak" ;:'2} * (1200 %~ 0 { ]) * ((1 + 1200 %~ 0 { ]) ^ 1 { ]) % 1 -~ (1 + 1200 %~ 0 { ]) ^ 1 { ]' ┌─┬─┬─┬─┬────┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬────┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬────┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │2│}│*│(│1200│%│~│0│{│]│)│*│(│(│1│+│1200│%│~│0│{│]│)│^│1│{│]│)│%│1│-│~│(│1│+│1200│%│~│0│{│]│)│^│1│{│]│ └─┴─┴─┴─┴────┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴────┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴────┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ If you work on a laptop you could read all this much better. As you study it from right to left you will be able to tell where y belongs. Try this on a dyadic function to see some differences. Linda -----Original Message----- From: Programming <[email protected]> On Behalf Of 'Jim Russell' via Programming Sent: Tuesday, September 11, 2018 4:04 PM To: [email protected] Subject: Re: [Jprogramming] [Jpr I for one would love to see that (a clear description of how 13 : converts explicit expressions to tacit) but I can’t promise that I would understand it. > On Sep 11, 2018, at 1:05 PM, Raul Miller <[email protected]> wrote: > > a clear description of how 13 : converts explicit expressions to tacit. ---------------------------------------------------------------------- For information about J forums see https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Feur04.safelinks.protection.outlook.com%2F%3Furl%3Dhttp%253A%252F%252Fwww.jsoftware.com%252Fforums.htm%26amp%3Bdata%3D02%257C01%257C%257C063bf3d8d5204562162908d61821bd09%257C84df9e7fe9f640afb435aaaaaaaaaaaa%257C1%257C0%257C636722930512618244%26amp%3Bsdata%3DWRyQaVccMdvjcVGnMGvkjhfLDRE8XTOKcaqIsIvJC5Y%253D%26amp%3Breserved%3D0&data=02%7C01%7C%7C705df3c6218948fd9eb308d61859dd16%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636723171566549423&sdata=viGyd9jmneRhOrhwejE07oLHQ%2F8fMsWbBiP6r3rq7JY%3D&reserved=0 ---------------------------------------------------------------------- For information about J forums see https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C705df3c6218948fd9eb308d61859dd16%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636723171566549423&sdata=FURA6VJ3If9Yn%2FTIdoz4xIdn%2Bm9IvNWyEGTgGqlAZsY%3D&reserved=0 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
