Welcome, Guest. Please login or register.

Author Topic: A trigonometry question  (Read 4452 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Doobrey

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show all replies
    • http://www.doobreynet.co.uk
Re: A trigonometry question
« on: August 15, 2007, 09:19:59 PM »
There's 2 things I always remember from maths lessons at school
1. Don't offend the teacher by mentioning her hairy legs.

2. The 'SOH CAH TOA' rule

  Sine(a)=Opposite/Hypotenuse
  Cosine(a)=Adjacent/Hypotenuse
  Tangent(a)= Opposite/Adjacent

Looking at your diagram,since you know x=adjacent, y=opposite, so you can calculate the tangent. From that, you can calculate the angle by using the inverse tangent function (also called arc tangent)

  angle=atan(y/x);

Dunno what language you're using, but in C  the atan() result is in radians, so you have to multiply the result by (180/PI) to convert to degrees.
On schedule, and suing