How do you use sin, cos, and tan? (with the iPhone sdk)

How do you use sin, cos, and tan with the iPhone sdk? And also how do you use the inverse of them?

Thanks

iMac, Mac OS X (10.5.5)

Posted on May 13, 2009 3:21 PM

Reply
3 replies

May 13, 2009 8:44 PM in response to MrPenguin9

Noah is correct. Generally you can use any of the standard (BSD) C-runtime library functions with the iPhone SDK by #importing the required header. The quickest way to get the doc on any of these is from the Terminal command line. 'man math' will get you the list of all the math functions. 'man sin' will get the pages for sin(), sinl(), sinf(). The inverse circular and hyperbolic functions are named by prefixing an 'a'. So 'man asin' will bring up the pages for asin(), asinl(), asinf().

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do you use sin, cos, and tan? (with the iPhone sdk)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.