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://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7C063bf3d8d5204562162908d61821bd09%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636722930512618244&amp;sdata=WRyQaVccMdvjcVGnMGvkjhfLDRE8XTOKcaqIsIvJC5Y%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to