|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] Complex number display |
Date: | Tue, 20 May 2014 12:47:01 +0800 |
Informal Description: Numeric output conversion converts numeric values represented as numbers—numeric quantities whose format is implementation-defined—into the same numeric quantities represented in decimal notation as lists of characters.
Note: Any imaginary-part of the numeric input to Numeric-Output-Conversion is simply ignored; only the real-part of a complex-number is used.
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
[Prev in Thread] | Current Thread | [Next in Thread] |