Results 1 to 7 of 7

Thread: [RESOLVED] Trigonometry... and bad too!

  1. #1

    Thread Starter
    Hyperactive Member BillGeek's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    440

    Resolved [RESOLVED] Trigonometry... and bad too!

    Hey Guys

    Another question that, well, is basically Trigonometry based. (I think... )

    Suppose you have, as the following illustration:
    BAC = 25deg.
    AC = 1meter
    and A = (2, 1)



    How would one calculate the coordinates of point C on the sketch above?

    As I never completed any tertiary matematical courses, (and have forgotten my highschool maths already) I have figured out a way to do it that's... well... not right.

    Theta = 25deg.
    25 / 90 = 0.27
    65 / 90 = 0.72

    Therefore,
    y = y + 0.72
    x = x - 0.27

    I know, I know, it sucks. That's not right and I know it.

    Please guys, I hope that this will be the last question I have to post today.

  2. #2
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: Trigonometry... and bad too!

    You already know the y coordinate of C, because you have been given the length AB and the coordinates of A. To figure out the length BC you need to know that the tan of an angle is Opposite / Adjacent. You know the angle and the Adjacent. Then you can figure out the x coordinate of C, because you again know the x distance from A and the start coordinate.
    I use VB 6, VB.Net 2003 and Office 2010



    Code:
    Excel Graphing | Excel Timer | Excel Tips and Tricks | Add controls in Office | Data tables in Excel | Gaussian random number distribution (VB6/VBA,VB.Net) | Coordinates, Vectors and 3D volumes

  3. #3
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Trigonometry... and bad too!

    Coordinates of B: (2,2)

    Coordinates of C: y is the same as that of B, i.e. yc = 2

    As for x,

    xc = xa - CB

    But tan(25) = CB / BA so:

    CB = BA*tan(25) = (yb - ya) tan(25)

    And finally,

    xc = xa - (yb - ya) tan(25) = 2 - (2 - 1)*tan(25) = 2 - tan(25) = 1.5337 approx.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  4. #4

    Thread Starter
    Hyperactive Member BillGeek's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    440

    Re: Trigonometry... and bad too!

    Quote Originally Posted by zaza
    You already know the y coordinate of C, because you have been given the length AB and the coordinates of A.
    WAIT!!! Sorry guys, a bit of a typo in the example above! It's not AB that's 1 meter, it's AC... Sorry...

  5. #5
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Trigonometry... and bad too!

    OK, that easy:
    You have AC=1 and the angle CAB=25° . In that case CB is sin(25°)=0.422618
    [since AC=1 the Sin is equal to the Length !]
    Knowing that CAB=25° and ABC=90°, therefor BCA=65° and that makes BA sin(65°)=0.90631
    You can check the values by using the a^2 +b^2=c^2!!

    I hope you can do the calculation of the coordinates on your own ;-)
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  6. #6

    Thread Starter
    Hyperactive Member BillGeek's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    440

    Re: Trigonometry... and bad too!

    Ahhh... I keep forgetting which is adjacent and which is opposite, from which angle to work from, which function to use...

    Thanks opus. I believe that this will help me a great deal!

    Theoretically speaking, if the angle of ACB was 40deg, that would mean that to calculate BA, I would take BA = Sin(40) = 0.745113160479349

    Thanks again!

  7. #7
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: Trigonometry... and bad too!

    Quote Originally Posted by BillGeek
    Ahhh... I keep forgetting which is adjacent and which is opposite, from which angle to work from, which function to use...

    Thanks opus. I believe that this will help me a great deal!

    Theoretically speaking, if the angle of ACB was 40deg, that would mean that to calculate BA, I would take BA = Sin(40) = 0.745113160479349

    Thanks again!

    If you have a right-angled triangle, then the Hypotenuse is the longest side opposite the right angle, the Opposite side is the side opposite the angle you know / are looking for and the Adjacent side is the one which is adjacent to aforementioned angle, i.e. the one which, with the hypotenuse, actually forms the angle.

    sin = Opp / Hyp
    cos = Adj / Hyp
    tan = Opp / Adj



    zaza
    I use VB 6, VB.Net 2003 and Office 2010



    Code:
    Excel Graphing | Excel Timer | Excel Tips and Tricks | Add controls in Office | Data tables in Excel | Gaussian random number distribution (VB6/VBA,VB.Net) | Coordinates, Vectors and 3D volumes

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