Help with inverse sin in xcode

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

  1. zerocool5878 macrumors newbie

    Joined:
    Sep 12, 2010
    #1
    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?
     
  2. Sykte macrumors regular

    Joined:
    Aug 26, 2010
    #2
  3. bredell macrumors regular

    Joined:
    Mar 30, 2008
    Location:
    Uppsala, Sweden
    #3
    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