std.complex

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Nov 24 15:35:18 PST 2013


On 11/24/13 3:24 PM, Joseph Rushton Wakeling wrote:
> On Sunday, 24 November 2013 at 18:37:48 UTC, Andrei Alexandrescu wrote:
>> But that originates as a call to multiplication between two Complex
>> numbers. Can't the problem be addressed at that level?
>
> Don't see why not, but it's going to be an unpleasant mess of if/else
> unless anyone can think up any clever tricks to avoid it.

How many special cases are out there?

> BTW is it true that IEEE standards define 0 * inf to be nan? It's
> counter-intuitive mathematically and I can't find a reference to that
> effect.

It sort of does. If you multiply something that goes to 0 with something 
that goes to infinity it could go either way.


Andrei



More information about the Digitalmars-d mailing list