You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, std::pow(std::complex<boost::float128_t>, boost::float128_t>) works not with negative real and zero imag, eg:
template <typename Type>
void show_complex_pow(const Type r, const Type i, const Type e)
{
std::complex<Type> c(r, i);
c = std::pow(c, e);
std::cout << c << std::endl;
}
const double
r = -0.7,
i = 0.0,
e = 2.3;
show_complex_pow<double>(r, i, e);
show_complex_pow<boost::float128_t>(r, i, e);
(+0.258788,+0.356191)
(-nan,+0)
The text was updated successfully, but these errors were encountered:
gpeterhoff
changed the title
complex pow for boost::float128_t
complex pow fails with boost::float128_t
Apr 26, 2023
Hi,
std::pow(std::complex<boost::float128_t>, boost::float128_t>)
works not with negative real and zero imag, eg:(+0.258788,+0.356191)
(-nan,+0)
The text was updated successfully, but these errors were encountered: