When working with complex number computations some result, (a j. b) may satisfy 
the equation (a=a+b) within tolerance. In that case it is reasonable to write 
(b=0), even if the imaginary part  b  is not exactly equal to zero.
I wrote program  f0  such that
   f0 0.210224j2.92605e_98  _7.31512e_99j0.210224

0.210224 0j0.210224

like this

f1=.j./&(*(1,:-.&({. = +/)))&(|:&:+.)

 f2=.f1&.:(*&0j1)
 f0=.f1&f2


Why not include such functionality into the J system?
Thanks.
Bo.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to