New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complex#atan2() #140
Comments
Beware that in Wolfram alpha, it seems that the two argument atan function is interpreted as tan^-1(x, y) (see the input interpretation panel in the result page), whereas in Hipparchus https://www.wolframalpha.com/input/?i=atan%28%2B1.0e-8%2BI*4%2C+2%2B1.0e-8+I%29 note that changing the sign of the almost zero real part changes the output: https://www.wolframalpha.com/input/?i=atan%28-1.0e-8%2BI*4%2C+2%2B1.0e-8+I%29 So I would say the Hipparchus result is correct here. |
OK.
|
- Hipparchus-Math/hipparchus#140 - Note: the first argument of atan2 is y and the second is x.
Good idea, I have updated documentation. |
gives
(0.0, -0.5493061443340549)
but should give1.5707963267948966+I*0.5493061443340549*
https://www.wolframalpha.com/input/?i=atan%282%2CI*4%29
The text was updated successfully, but these errors were encountered: