It happens that the real part is zero, but the type of the numbers is
still complex.
(3!:0) -*:i.5
4
(3!:0) *:j.i.5
16
What you want is plotting the real part of the result, you don't want to
plot complex numbers. I think "plot" does not have to check whether some
particular case of complex numbers are okay as an input.
Plotting [EMAIL PROTECTED] *:j.i.5 should work.
Dom
Eldon Eller a écrit :
load 'plot'
-*:i.5
0 _1 _4 _9 _16
*:j.i.5
0 _1 _4 _9 _16
plot -*:i.5 NB. does the right thing
plot *:j.i.5
|domain error: glcmds
| glcmds buf
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm