What if you wanted
0j0 1j0 2j0.....
1j0 1j1 2j1  ...
..... as an array?
On 21/03/2014 2:09 AM, Linda Alvord wrote:
Perhaps you meant:

i:2!10
_45 _44 _43 _42 _41 _40 _39 _38 _37 _36 _35 _34 _33 _32 _31 _30 _29 _28 _27
_26 _25 _24 _23 _22 _21 _20 _19 _18 _17 _16 _15 _14 _13 _12 _11 _10 _9 _8 _7
_6 _5 _4 _3 _2 _1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27 28 29 30 31...
Linda
--
---Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Friday, March 21, 2014 2:22 AM
To: Programming forum
Subject: [Jprogramming] A curious omission

    i: 10j2
_10 0 10
    i. 10j2
|domain error

Not quite sure why we can use complex numbers with i: but not i.

Of course it might also be useful to specify the step size instead of the
number of steps. But !. could be used for that:

    i.!.2]10

|domain error


Curious...



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

Reply via email to