|
-
Dec 19th, 2007, 06:33 AM
#1
Thread Starter
Hyperactive Member
Tangent
How can I use Tangent on Visual basic?
-
Dec 19th, 2007, 06:36 AM
#2
Thread Starter
Hyperactive Member
Re: Tangent
On my calculator, it has Tan(whatever) and also Tan-1(whatever). How can I get the Tan-1(whatever) in visual basic?
-
Dec 19th, 2007, 06:37 AM
#3
Re: Tangent
Tangent = Tan(Angle_in_Radians)
Arc_Tangent_Radians = Atn(Value)
Co_Tangent = 1 / Tangent
Last edited by Doogle; Dec 19th, 2007 at 06:41 AM.
-
Dec 19th, 2007, 06:45 AM
#4
Thread Starter
Hyperactive Member
Re: Tangent
what does Arc_Tangent_Radians and Co_Tangent mean?
-
Dec 19th, 2007, 06:50 AM
#5
Thread Starter
Hyperactive Member
Re: Tangent
I havent learnt anything about this yet, I just started yesr 9 and my mum taught me What I know.
-
Dec 19th, 2007, 06:51 AM
#6
Re: Tangent
Tangent (angle) = the Ratio of the side Opposite the ange to the side Adjacent to the angle, in a right angled triangle
Arc Tangent(Value) (Often written as Tan to the power of -1) is the Angle who's ratio of the Opposite side to the Adjacent side is Value
-
Dec 19th, 2007, 06:53 AM
#7
Thread Starter
Hyperactive Member
Re: Tangent
Oh, I see, so arc tangent would be the Tan-1(whatever) on my calculator.
-
Dec 19th, 2007, 06:55 AM
#8
Re: Tangent
There's an easy way to remember:
SOHCAHTOA (pronounced "sock-a-toa")
Sin = Opposite / Hypotinuse
Cos = Adjecent / Hypotinuse
Tan = Opposite / Adjacent
-
Dec 19th, 2007, 07:02 AM
#9
Re: Tangent
Here's an example, Ctrl+G to open the debug window
Code:
Const RAD2DEG As Double = "57.29577951308232" 'coercing a string to squeeze maximum accuracy
Dim Adj As Double, Opp As Double, Rat As Double, Rad As Double
Adj = 3 'Adjacent length
Opp = 4 'Opposite length
Rat = Opp / Adj 'Ratio of Opposite/Adjacent
Rad = Atn(Rat) 'Resulting angle in radians
Debug.Print "angle in Radians:"; Rad
Debug.Print "angle in Degrees:"; Rad * RAD2DEG
Debug.Print "Opposite length:"; Tan(Rad) * Adj
Debug.Print "Adjacent length:"; Opp / Tan(Rad)
-
Dec 19th, 2007, 07:07 AM
#10
Re: Tangent
On your calculator your have such as: Tan(pi/4) = 1 and Tan-1(1) = pi/4.
In VB or VBA, you can have : y = Tan(x) and x = Atn(y)
such as when you write : y = Tan(0.785390663375) then the value of y is 1 (nearly),
when you write : x = Atn(1) then the value of x is 0.785390663375 (~ pi/4)
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
|