Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zerocool5878

macrumors newbie
Original poster
Sep 12, 2010
11
0
Hello,

I know that I can do

x = sin(y)

but I need to do

x = sin-1(y)

the above doesn't seem to work.

Is there a trick to it?
 
You're looking for the asin() function.

All math functions are documented in the math manual page. From the command line you can enter "man math" or from within Xcode choose Help -> Developer Documentation, press the "man..." button and enter "math". This will give you the math man page.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.