On 17 January 2013 01:56, David Ward Lambert <[email protected]> wrote:
> I suppose j stores complex numbers as REAL j. IMAG .  If instead j
> stored radius and direction these might have better meaning:
> ...

Once we have +0 and -0 as distinct values, why stop here?
In the complex plane, one would expect a continuum of zeros with
all possible trends.  Thus,

   z =. 0 r. α

is a complex number of zero magnitude and argument α -- a pure
direction!  So  *.z  returns the list  0,α, while  +.z  returns
a list of two values such that  0=+/|+.z  and  %/+.z  is the tangent
of α, i.e.  _3&o.%/+.z  is α itself.
:)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to