Help with inverse sin in xcode

Discussion in 'iOS Programming' started by zerocool5878, Oct 27, 2010.

  1. zerocool5878 macrumors newbie

    Sep 12, 2010

    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?
  2. Sykte macrumors regular

    Aug 26, 2010
  3. bredell macrumors regular

    Mar 30, 2008
    Uppsala, Sweden
    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.

Share This Page