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: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2004 20:23:31 -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 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