Comparison of Imaginary types
ShadoLight
ettienne.gilbert at gmail.com
Thu Jul 9 07:49:22 UTC 2026
On Wednesday, 8 July 2026 at 22:59:44 UTC, Damian McGuckin wrote:
> On Wednesday, 8 July 2026 at 05:43:58 UTC, Ali Çehreli wrote:
>> On 7/7/26 7:51 PM, Damian McGuckin wrote:
>>
>> > Is there any background documentation by Walter when he
>> implemented them?
>>
>> This came full circle. :)
>
> We need to go back to the fundamentals. I think Walter's
> original concepts are very sound as they are much closer to the
> ideas of Kahan and Thomas on the need for complex and imaginary
> types in C.
>
> Given a
>
> cdouble c;
>
> how does one extract the real and imaginary parts in D?
>
>> There used to be a digitalmars.com article on the rationale
>> for the complex types being a part of the language. I can't
>> find that original article but I have my translation of it to
>> Turkish likely from 2009:
>>
>> https://ddili.org/tanitim/fark_karmasik.html
>
> That was useful although some of the automatic translation was
> ... well ... interesting
The original article can still be read on the Wayback Machine:
https://web.archive.org/web/20051210051850/http://www.digitalmars.com/d/cppcomplex.html
More information about the Digitalmars-d-learn
mailing list