[Jprogramming] 5|0 1 2 3 4 is not equal to 5|0 1 2 3 4 j.0

Ian Clark earthspotty at gmail.com
Sun Jan 22 17:23:33 HKT 2012


This has similarities to the issues discussed in:
  http://jsoftware.com/pipermail/programming/2011-July/023384.html

On Sun, Jan 22, 2012 at 8:40 AM, Bo Jacoby <bojacoby at yahoo.dk> wrote:
> Equal arguments should give equal function values, but not here.
>
>    a=.i.5
>    b=.a j. 0
>    f=. 5&|
>    a-:b
> 1
>    (f a)-:(f b)
> 0
>
>    f a
> 0 1 2 3 4
>    f b
> 0 1 2 _2 _1
>
> -Bo
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list