-
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!
-
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]