Here's Raul's in one line. Interesting!
pmt 5.75 240 12500
87.7604
pmt
((% <:)@([: (^~ >:)/ (2 3$0 1 0 1 0 0) +/ .* ]) * 1 0 1 */ .# ])@(%&1200 1 1)
pmt
((% <:)@([: (^~ >:)/ (2 3$0 1 0 1 0 0) +/ .* ]) * 1 0 1 */ .# ])@(%&1200 1 1)
Linda
Sent from my Verizon, Samsung Galaxy smartphone
Here's Raul's in one line. Interesting!
pmt 5.75 240 12500
87.7604
pmt
((% <:)@([: (^~ >:)/ (2 3$0 1 0 1 0 0) +/ .* ]) * 1 0 1 */ .# ])@(%&1200 1 1)
pmt
((% <:)@([: (^~ >:)/ (2 3$0 1 0 1 0 0) +/ .* ]) * 1 0 1 */ .# ])@(%&1200 1 1)
Linda
-Original Message-
From: Programming On
I'm having trouble understanding one of the examples in NuVoc dealing with the
derivative conjunction. It comes up in the third of the common uses section.
This sets out a verb that calculates 3 values from a list. The verb is
f =: (<./ , (+/ % #) , >./)@,
and the sample data
x =: 2 4 $ 3 1 2
wilco
-M
At 2018-09-15 17:31, you wrote:
Please note that there is no need to include an entire thread in
forum messages,
--
For information about J forums see http://www.jsoftware.com/forums.htm
Hi Linda -
There are three versions I sent you
(unfortunately badly garbled by unintentional line breaks).
1
amor: explicit, with function body (3 : 0 ... )
amore: explicit, one-liner (13 : ' ...' )
amort: tacit (from 13 :)
2
Your question about factor 1'200:
1st line of amor reads in y (a
Dear All
Please note that there is no need to include an entire thread in forum
messages, as in this message today which runs to nearly 900 lines:
http://www.jsoftware.com/pipermail/programming/2018-September/051914.html .
It is reasonable to include messages that are being directly replied to,
b
Thanks Martin,
amore=: 13 : '({: y) * rmf % (1-(>: rmf=. 1200 %~ {. y)^- 1&{ y)'
amort=: {: * (1200 %~ {.) % 1 - ([: >: 1200 %~ {.) ^ [: - 1&{
(amore 5.75 240 12500);amort 5.75 240 12500
┌───┬───┐
│87.7604│87.7604│
└───┴───┘
amore
{: * (1200 %~ {.) % 1 - ([:
Thanks Martin,
amore 5.75 240 12500amore 5.75 240 12500amore 5.75 240 12500amore 5.75 240
12500amore 5.75 240 12500amore 5.75 240 12500amore 5.75 240 12500amore 5.75 240
12500amore 5.75 240 12500amore 5.75 240 12500amore 5.75 240 12500amore 5.75 240
12500amore 5.75 240 12500amore 5.75 240 12500