如何在IPhone SDK中计算cos,sin,tan?

sen*_*thu 2 iphone

你如何计算iPhone SDK中的cos,sin,tan三角函数?

我尝试了tan(45),但它返回了错误的输出?任何帮助?

kdg*_*ory 6

大多数数学库使用弧度,而不是度数.