Thread: How to inverse a trig?

  1. #1
    Registered User
    Join Date
    Aug 2007

    How to inverse a trig?

    Im coding in console app, and i can't seem to find a way to get the inverse of sine.

    I need it to evaluate:
    a = sin^-1(0.2/0.5)
    a=23.58 degrees

    but while looking through the different 'Math.' options i didn't find anything like or would resemble equivalent to the inverse of sin (sin^-1). Ive also checked the help search and tried to do it another alternative but was required to get the inverse of tan and am stuck.

    Could someone help me out?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Math.Asin (arcus sine == inverse sine)
    signature under construction

  3. #3
    Registered User
    Join Date
    Aug 2007
    Quote Originally Posted by Raven Arkadon View Post
    Math.Asin (arcus sine == inverse sine)
    Doesn't work ...
    a = Math.Asin(0.25);
    a = 0.25268...

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    What were you expecting?

    All of the trigonometric math functions in C, C++, and apparently C# use radians, not degrees. If you want degrees, convert the radians to degrees.

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Registered User
    Join Date
    Aug 2007
    ohhhh! gotcha

    That makes sense now ...

    Thx for the help. -got it to work

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need to Calculate the Inverse of A Matrix.
    By jordan_230 in forum C Programming
    Replies: 6
    Last Post: 11-03-2008, 06:14 PM
  2. Multiplicative inverse question
    By Overworked_PhD in forum Tech Board
    Replies: 3
    Last Post: 04-02-2008, 09:58 AM
  3. ROW OPERATIONS (finding Inverse) (im going crazy)
    By alexpos in forum C Programming
    Replies: 1
    Last Post: 11-20-2005, 10:07 AM
  4. inverse matrix
    By Yumin in forum C++ Programming
    Replies: 2
    Last Post: 11-15-2005, 12:06 AM
  5. inverse trig functions
    By Silvercord in forum A Brief History of
    Replies: 2
    Last Post: 02-22-2003, 11:20 AM