# Thread: How to inverse a trig?

1. ## How to inverse a trig?

Im coding in console app, and i can't seem to find a way to get the inverse of sine.

I need it to evaluate:
a = sin^-1(0.2/0.5)
a=23.58 degrees

but while looking through the different 'Math.' options i didn't find anything like or would resemble equivalent to the inverse of sin (sin^-1). Ive also checked the help search and tried to do it another alternative but was required to get the inverse of tan and am stuck.

Could someone help me out?

2. Math.Asin (arcus sine == inverse sine)

3. Originally Posted by Raven Arkadon
Math.Asin (arcus sine == inverse sine)
Doesn't work ...
a = Math.Asin(0.25);
a = 0.25268...

4. What were you expecting? http://www.google.ca/search?hl=en&q=...G=Search&meta=

All of the trigonometric math functions in C, C++, and apparently C# use radians, not degrees. If you want degrees, convert the radians to degrees. http://www.google.ca/search?hl=en&q=...G=Search&meta=

5. ohhhh! gotcha

That makes sense now ...

Thx for the help. -got it to work

Popular pages Recent additions