Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
math/cmplx: hyperbolic sinh, cosh and tanh give wrong result for Inf input #29320
What version of Go are you using (
I would recommend conforming to the C99 Standard Appendix G.6 for complex arithmetic which differs slightly from the expected results above.
Likely other special cases may not be handled consistent with the C99 standard either.