possibly the problem is some accidental result in the code - after all i. is a list of real positive integers and the extention to i: is supposed to list real positive and negative integers. I should think that when dealing with complex numbers, i. and i: should be flagged as an error OR ignore the j component and treat as reals. OR list a table of all (i.10)j0 0j1; 1j0.1j1; etc to 9j0, 9j1 which may be or more useful.-I can see evaluating things such as electric fields- at some definite x,y positions expressed as xjy.

Don

On 20/03/2014 11:22 PM, Raul Miller wrote:
    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