Results 1 to 2 of 2

Thread: Maths question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    France
    Posts
    90

    Hi,

    I know it's possible with VB to get the Sine, Cos or Tan of an angle.

    But how can I (if possible) get the invertion?

    Like say if I have two textboxes and a command button. I put .8660 in text1. How can I make the angle whose Sine is that appear in text2? (I know in this case the angle is 60 degrees 'cause I checked on the Windows Calculator.)

    Thanks!

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    no problem for a variable x

    the sine is Sin(x)
    the cosine is Cos(x)
    the tangent is Tan(x)

    The inverse tangent is Atn(x)
    The inverse sine is Atn(x / Sqr(1 - (x*x)))
    the inverse cosine is Atn(Sqr(1 - (x*x)) / x)

    all angles have to be in Radians

    there are 57.2957795130823 degrees in a radian


    [Edited by Sam Finch on 07-05-2000 at 06:55 PM]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width