On Thu, Nov 1, 2012 at 5:12 AM, Linda Alvord <lindaalv...@verizon.net> wrote:
> Trudging back to my days in calculus I go to 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
>    6.2 ":(c p. x),:(f*g) x
> ran with error:
> |domain error: scriptd
> |   6.2    ":(c p.x),:(f*g)x
> |[-4] c:\users\owner\j701-user\temp\53.ijs

   6.2 ": 1
|domain error

> Without formatting  6.2 ":  I march on:
>
> (c p. x),:(f*g) x
> 1 1.61051 2.48832 3.71293 5.37824 7.59375 10.4858 14.1986
> 1 1.61051 2.48832 3.71293 5.37824 7.59375 10.4858 14.1986
>    ff=: 13 :'1 2 1 p. y'
>    ff
> 1 2 1 p. ]
>    gg=:1 3 3 1 p. ]
>    gg
> 1 3 3 1 p. ]
>    ]X=:10%~I=:i.8
> 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7
>    (f I)-:ff I
> 1
>    (g I)-:gg I
> 1
>    ]C=:(ff*gg)  t. I
> ran with error:
> |rank error: scriptd
> |   ]C=:    (ff*gg)t.I
> |[-13] c:\users\owner\j701-user\temp\53.ijs
>
> So, what happened now?

   ff t. 1
|rank error
   ff
1 2 1 p. ]
   ff"0 t. 1
|rank error

but:

   1 2 1&p. t. 1
2

It looks like t. is not prepared to deal with p. forks

FYI,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to