You explain what ^t. does, but what does t. do?
t. i.6
|syntax error
| t.i.
1 t. i.6
|length error
| 1 t.i.6
^t.
%@!
t.
t.
Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Monday, April 04, 2011 11:31 AM
To: Programming forum
Cc: Zsbán Ambrus
Subject: Re: [Jprogramming] Taylor coefficients dyad
On Mon, Apr 4, 2011 at 10:33 AM, Zsbán Ambrus <[email protected]> wrote:
> Let me ask some question on the builtins for Taylor coefficients.
>
> Firstly, I don't understand how diadic (u t.) works. Of the following
> two phrases, the first one gives the correct result, and the second
> one should give the same result according to the dictionary if I read
> it right, but I get something else. Why?
>
> ^t.i.6
> 1 1 0.5 0.166667 0.0416667 0.00833333
> 1 ^t.i.6
> _ 1 0.5 0.333333 0.25 0.2
^t.
%@!
This is all that t. does -- it's up to you how you use it.
%@! i.6
1 1 0.5 0.166667 0.0416667 0.00833333
1 %@! i.6
_ 1 0.5 0.333333 0.25 0.2
The first sentence is an example how this mechanism was intended to be used.
The second sentence is just coincidence -- the result of t. was not designed
to deal with a left argument.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm