This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13450] std::pow(std::complex<double>(-1.,0.),0.5) yields (NaN,0)
- From: "paolo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2004 10:07:17 -0000
- Subject: [Bug libstdc++/13450] std::pow(std::complex<double>(-1.,0.),0.5) yields (NaN,0)
- References: <20031219173057.13450.pkienzle@nist.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From paolo at gcc dot gnu dot org 2004-01-11 10:07 -------
Hi everyone, hi Gaby. I'm attaching what I get with current mainline and
icc8 on x86. There are some differences:
9,10c9,10
< pow(-real,cplx) =(nan,nan)
< pow(-cplx,real) =(nan,0)
---
> pow(-real,cplx) =(nan,0)
> pow(-cplx,real) =(6.12303e-17,1)
15,16c15,16
< pow(-real,cplx) =(nan,nan)
< pow(-cplx,real) =(nan,0)
---
> pow(-real,cplx) =(nan,0)
> pow(-cplx,real) =(-1.57468,-4.84637)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13450