开发者

sin inverse in Iphone SDK?

I wanted to calculate sin inverse ..so i did this:

   float radians =  asinf(1.1开发者_如何学JAVA205);
NSLog(@"%f",radians);

Output is something like "nano"....any help?


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


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜