|
-
Jul 5th, 2000, 05:22 PM
#1
Thread Starter
Lively Member
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!
-
Jul 5th, 2000, 05:53 PM
#2
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|