Results 1 to 10 of 10

Thread: Tangent

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    Question Tangent

    How can I use Tangent on Visual basic?

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    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?

  3. #3
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    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.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    Re: Tangent

    what does Arc_Tangent_Radians and Co_Tangent mean?

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    Re: Tangent

    I havent learnt anything about this yet, I just started yesr 9 and my mum taught me What I know.

  6. #6
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    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

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    Re: Tangent

    Oh, I see, so arc tangent would be the Tan-1(whatever) on my calculator.

  8. #8
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Tangent

    There's an easy way to remember:

    SOHCAHTOA (pronounced "sock-a-toa")

    Sin = Opposite / Hypotinuse
    Cos = Adjecent / Hypotinuse
    Tan = Opposite / Adjacent

  9. #9
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    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)

  10. #10
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    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
  •  



Click Here to Expand Forum to Full Width