bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Complex number display


From: Frederick H. Pitts
Subject: [Bug-apl] Complex number display
Date: Mon, 19 May 2014 23:24:31 -0500

Juergen,

        Under "Display of Complex Numbers:" on page 13 of the "APL2
Programming: Language reference", the document says:

        "In J notation, the real or imaginary part is not displayed if it is
less than the other by more than ⎕PP orders of magnitude (unless ⎕PP is
at its maximum)".  

        In SVN 268, neither of the presented examples work.  The smaller
magnitude part is not zeroed if its the real part or suppressed if its
the imaginary part.

        In addition, complex numbers entered in polar notation as described at
the top page 12 do not display correctly per the description on page 13.
1D90 and 1R1.5707963267948965 should display as 0J1 assuming ⎕PP is less
than maximum.  Currently the real part is displayed as some number times
10 to the -16 power, i.e. zero for all intents and purposes.

Regards,

Fred
Retired Chemical Engineer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]