tags:

views:

60

answers:

2

hi,i wanted to calculate sin inverse ..so i did like

   float radians =  asinf(1.1205);
NSLog(@"%f",radians);

output is like nano....any help?

+3  A: 

You cannot take the arcsine of a number outside [-1, 1]. There is no angle that can produce a sine outside of that range.

Ignacio Vazquez-Abrams
+1  A: 

The output is nan, which means "Not a number".

The output range of sine is [-1, 1], so the inverse sine of any number larger than 1 is meaningless on the real line. Do you want a complex number or what?

KennyTM