• Advertisement
Sign in to follow this  

acos ( ) in Java has gone bezierk

This topic is 970 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A  bizarre thing

Math.acos(0.24309845) in my java code gave 1.3252374720942488 degrees 

 

but arccos(0.24309845) is really  75.9305 degrees

 

So why is Math.acos() giving me the wrong value OR maybe what am i doing wrong?

My bet is i'm doing something stupid but can't see it yet

Share this post


Link to post
Share on other sites
Advertisement

All Java's Math trigonometry functions use radians. Keep that in mind (or read the docs, thats why they're there).

Edited by TheChubu

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement