Nice !. a reminder of the table (u/)  capability other than the usual +-*%

( i.2) j./i.5

0 0j1 0j2 0j3 0j4

1 1j1 1j2 1j3 1j4

or
(i:2)j./i:3

_2j_3 _2j_2 _2j_1 _2 _2j1 _2j2 _2j3

_1j_3 _1j_2 _1j_1 _1 _1j1 _1j2 _1j3
0j_3 0j_2 0j_1 0 0j1 0j2 0j3

1j_3 1j_2 1j_1 1 1j1 1j2 1j3

2j_3 2j_2 2j_1 2 2j1 2j2 2j3


The behaviour of i: is actually shown in the vocabulary for complex numbers- a specific use -range and step size. and is quite satisfactory. but i. is not defined for complex numbers and possibly a note could be added to the definition to indicate this.


Thanks
Don.


On 21/03/2014 5:49 PM, Devon McCormick wrote:
    j./~i.3
0 0j1 0j2
1 1j1 1j2
2 2j1 2j2


On Fri, Mar 21, 2014 at 8:34 PM, Don Kelly <[email protected]> wrote:

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




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

Reply via email to