How to inverse a trig?

This is a discussion on How to inverse a trig? within the C# Programming forums, part of the General Programming Boards category; Im coding in console app, and i can't seem to find a way to get the inverse of sine. I ...

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    33

    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
    Posts
    244
    Math.Asin (arcus sine == inverse sine)
    signature under construction

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    33
    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
    Location
    Canada
    Posts
    8,047
    What were you expecting? http://www.google.ca/search?hl=en&q=...G=Search&meta=

    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. http://www.google.ca/search?hl=en&q=...G=Search&meta=
    dwk

    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: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Registered User
    Join Date
    Aug 2007
    Posts
    33
    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, 05: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, 09:07 AM
  4. inverse matrix
    By Yumin in forum C++ Programming
    Replies: 2
    Last Post: 11-14-2005, 11:06 PM
  5. inverse trig functions
    By Silvercord in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 02-22-2003, 10:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21