Bug 11787 – std.complex should have a separate Imaginary type

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-20T08:18:00Z
Last change time
2024-12-01T16:19:39Z
Assigned to
No Owner
Creator
Joseph Rushton Wakeling
Moved to GitHub: phobos#10022 →

Comments

Comment #0 by joseph.wakeling — 2013-12-20T08:18:00Z
The rationale for a separate imaginary type has been laid out in Kahan & Thomas, "Augmenting a programming language with complex arithmetic", http://www.eecs.berkeley.edu/Pubs/TechRpts/1992/CSD-92-667.pdf, and has also been requested on the D mailing lists: http://forum.dlang.org/thread/[email protected] Briefly, it should allow more efficient calculations (as unnecessary manipulations of 0 are avoided) and should allow a way round some calculations that unnecessarily evaluate to NaN under the IEEE floating point standard.
Comment #1 by bugzilla — 2019-11-12T20:23:22Z
IMHO, this is not a bug, but a request for an enhancement...
Comment #2 by robert.schadek — 2024-12-01T16:19:39Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10022 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB