double answer = Math.sin(Math.toRadians(angle));
It returns 0.5 when I set angle to 30 so that works correctly... But when I try to reverse it and get the arch sine value it doesn't! I use this code:
double answer = Math.asin(Math.toRadians(angle));
and try it by putting 0.5 into angle which would result in the answer being 30 but it doesn't...
I get the answer 0.008726757025787037 for some reason...
So I tried to convert the answer into degrees again:
double answer = Math.toDegrees(Math.asin(Math.toRadians(angle)));
This code gives me the answer 0.5000063464137362...
What am I doing wrong? Thanks in advance for any help!


Sign In
Create Account


Back to top










