http://d.puremagic.com/issues/show_bug.cgi?id=6560



--- Comment #7 from bearophile_h...@eml.cc 2011-08-27 07:29:09 PDT ---
(In reply to comment #6)

> I couldn't test the above because sqrt( ) and log( ) are not implemented for
> complex numbers in 2.051. I do not know the situation in 2.055head. Could you
> please verify this, if possible ?

Added two days ago:
https://github.com/D-Programming-Language/phobos/commit/cc2d7c9703c5b264f9e6aebeec314917b7805bec

I suggest you do dowload the latest std.complex:

https://raw.github.com/D-Programming-Language/phobos/master/std/complex.d

Probably it works with DMD 2.054 compiler too (or it works with tiny changes).


> The expected answer is (+inf, 1.0f) but the above prints "inf-nani".
> 
> I do not know how it was in D1, but in D2 the above produces mathematically
> incorrect result. Again, I'm unaware how it is in C99/C++, etc. or is it 
> always
> like this.

I presume that Don or Walter will take a look at this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to