Inverse sine in degrees?

Feb 28, 2010 at 6:08pm
How would you find the inverse sine in degrees?
I can get sine in degrees by using this:
out=sin((in)*pi/180);
But I can't get the inverse sine in degrees.
This doesn't work:
out=asin((in)*pi/180);
Feb 28, 2010 at 6:53pm
sin() takes an angle in radians and returns it's sin in range [-1; +1]
asin() takes a sin (in range [-1; +1]) and returns the angle in radians.
You have to convert radians to degrees:
out = asin(in) *180/pi
Topic archived. No new replies allowed.