Dear all -
Have consulted the relevant sections of the Dictionary, and
in my old v8.07 console, I've started to go through the
examples.
While exploring Taylor/ MacLaurin (t. t: T.) I've wondered
whether I'd be able to use it from my current v9.6.0 console as
well.
This has been my initial (admittedly crude) workaround
(some excerpt from my startup script):
-----
spwnd=: v8x=: 1 : 0
load '~system/main/task.ijs'
NB. path is specifically tailored to the situation at station
XXX
rst=. u spawn_jtask_ 'D:\Program Files
(non-sys)\j64-807-nonavx\jconsole.cmd' NB. result
from old console
NB. echo <rst
ccv=. {{ 0 ". _5}. 3}. y }} NB.
literal to executable conversion (result is first cleaned from
surrounding blanks '3,res,5' ??)
ccv rst
)
NB. Example use:
NB.
NB. '5*%:225' spwnd
NB. +----------+ NB. echo
<rst
NB. ¦ 75 ¦
NB. +----------+
NB. 75
NB. 'fib i.13' spwnd
NB. 0 1 1 2 3 5 8 13 21 34 55 89 144
NB. '0 0 1&p. T. 13 i.7' spwnd
NB. 0 1 4 9 16 25 36
NB.
NB. '^ t. i.7'
v8x
NB. Taylor Coefficients
NB. 1 1 0.5 0.166667 0.0416667 0.00833333 0.00138889
NB. '^ t: i.7'
v8x
NB. Weighted Taylor
NB. 1 1 1 1 1 1 1
NB. '^ T. 23 i.7'
v8x
NB. Taylor Approximation
NB. 1 2.71828 7.38906 20.0855 54.5982 148.413 403.429
-----
The adverb spwnd alias v8x seems to work; however
I've had no success on anything involving more than one line, like in the
first example from the Dictionary:
-----
f=: 1 2 1&p.
g=: 1 3 3 1&p.
x=: 10%~i=: i.8
]c=: (f*g) t. i
1 5 10 10 5 1 0 0
-----
Might be a problem with namespace or something worse. ---
My understanding is that it was part of JE code, and I'm pretty sure that
I won't be the person to port that stuff.
Means, for the time being, I'd be content if I'll be able to get a
workaround going.
Btw, could somebody kindly point me to some nice description on t.
t: T. (besides the Dictionary) which will work for my
level?
Thanks.
-Martin