[Jprogramming] Tacit form: How to handle intermediate
Linda Alvord
lindaalvord36 at outlook.com
Fri Sep 14 16:43:38 UTC 2018
I don,t do bug extermination, David.
Linda
Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------
From: David Lambert <b49p23tivg at gmail.com>
Date: 9/14/18 11:53 AM (GMT-05:00)
To: programming <programming at jsoftware.com>
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
I believe I can write payment tacitly, however I'm having a bad time
finding a tacit form for RootMe (yet another false position root finding
method adverb)
mean =: +/ % #
RootMe =: 1 :'({.~ _2 2"_ {~ _1 1 1"_ -: [: * u)@:({. , mean , {:)'
Also, given that 13 : is known to have bugs (or is it repaired in
current j versions?) Using 13 :literal forms need testing before trusted.
left hook and right hook
monad hook, hook dyadic
yeah wonderful hook!
Here's a fairly direct translation of
pmt=: 3 : 0
0 pmt y
:
'r t b'=. y
D=.(1 + r % 1200) ^ t
b*(r % 1200) * D % D - 1
)
.....................
r =: 0&{
t =: 1&{
b =: 2&{
payment_tacit_dwl =: b * (r % 1200) * (% <:)@:((1 + r % 1200) ^ t)
NB. "And our paranoia test is:"
payment_tacit_dwl 5.75 240 12500
57.4868
......................
|Date: Thu, 13 Sep 2018 14:34:03 +0000
|From: Linda Alvord <lindaalvord36 at outlook.com>
|To: "programming at jsoftware.com" <programming at jsoftware.com>
|Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
|Message-ID:
|
<MWHPR06MB31521FE1003DD716F29C2529B51A0 at MWHPR06MB3152.namprd06.prod.outlook.com>
|
|Content-Type: text/plain; charset="utf-8"
|
|Here are two tacit verb for pmt from Raul,
|
|
|pmt1200=:(%<:)@D * 1 0 1 */ .# ]
| pmt=: pmt1200@(%&1200 1 1)
| pmt 5.75 240 12500
|87.7604
|
| D
|[: (^~ >:)/ (2 3$0 1 0 1 0 0) +/ .* ]
|
| pmt1200
|(% <:)@D * 1 0 1 */ .# ]
|
|Can anyone other than Raul or Rob) writ an explicit OR tacit single
sentence definition for:
|
|PMREX=:
|
|PMTTA=:
|
|Cheers, Linda
----------------------------------------------------------------------
For information about J forums see https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffd.xuwubk.eu.org%3A443%2Fhttp%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7Ccf88363ed2e44dc71f1708d61a5a264a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636725371818386430&sdata=Zc88faRu7R1ZOqkJj6vJkBPGgJ%2BPiRWmFDQee0RCvIo%3D&reserved=0
More information about the Programming
mailing list