开发者

sin inverse in Iphone SDK?

开发者 https://www.devze.com 2022-12-19 00:12 出处:网络
I wanted to calculate sin inverse ..so i did this: float radians =asinf(1.1开发者_如何学JAVA205);

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

精彩评论

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

关注公众号