This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/13450] std::pow(std::complex<double>(-1.,0.),0.5) yields (NaN,0)


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]