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

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Mon Jan 12 20:23:00 GMT 2004


------- Additional Comments From gdr at integrable-solutions dot net  2004-01-12 20:23 -------
Subject: Re:  std::pow(std::complex<double>(-1.,0.),0.5) yields (NaN,0)

"pkienzle at nist dot gov" <gcc-bugzilla@gcc.gnu.org> writes:

| > Therefore we need a primitive that tells the sign of a real number.
| 
| C99 has signbit and copysign.  I was able to access them as follows:

Yes, I know C99 has signbit and copysign, but that helps hardly for
this template code for C++.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13450



More information about the Gcc-bugs mailing list