Re: [Mingw-w64-public] bug in mingw-w64 tanh()

2017-03-24 Thread Liu Hao
On 2017/3/24 23:08, Jeroen Ooms wrote: I was able to reproduce the problem on msys2 with gcc 6.3: #include #include #include int main(){ std::cout << std::fixed; std::complex z(356, 0); std::cout << "tanh" << z << " = " << std::tanh(z) << " (tanh(356) = " << std:

[Mingw-w64-public] bug in mingw-w64 tanh()

2017-03-24 Thread Jeroen Ooms
Somebody has reported unexpected results of tanh() on the r-devel mailing list: https://stat.ethz.ch/pipermail/r-devel/2017-March/073914.html I was able to reproduce the problem on msys2 with gcc 6.3: #include #include #include int main(){ std::cout << std::fixed; std::comp