Author Topic: Math question: find height from distance and two angles  (Read 6577 times)

0 Members and 1 Guest are viewing this topic.

paulmcz

  • Bull Frog
  • Posts: 202
Re: Math question: find height from distance and two angles
« Reply #15 on: June 25, 2013, 10:39:25 PM »
Your correction would work only if both angles were less than 90 deg.

MeasureUp

  • Bull Frog
  • Posts: 462
Re: Math question: find height from distance and two angles
« Reply #16 on: June 25, 2013, 11:10:48 PM »
Your correction would work only if both angles were less than 90 deg.
Not really. It works for angles greater than 90deg as well.

From your code the height = 3192.2655
while the height measured on the drawing = 2149.1800, which is based on these:
Angle a = 90.8933333333 deg
Angle b = 85.434722222 deg
Distance = 205.12

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Math question: find height from distance and two angles
« Reply #17 on: June 26, 2013, 12:33:43 AM »
I think you guys need to go back and define your terms.

The decision to add or subtract the divisor components depends on the way the larger angle is measured.
You are using different criteria.
« Last Edit: June 26, 2013, 12:37:08 AM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Math question: find height from distance and two angles
« Reply #18 on: June 26, 2013, 12:58:53 AM »
For instance :
using the internal angles as per the sketch attached is correct.

Using (- pi (dtr 100)) as Paul has done requires the divisor components be negated (as he has done).

So you are both correct, or both incorrect or whatever
« Last Edit: June 26, 2013, 01:08:45 AM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Math question: find height from distance and two angles
« Reply #19 on: June 26, 2013, 01:14:44 AM »
In answer to a PM.
The app is 'Pencil' ..
http://pencil.evolus.vn/Features.html
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MeasureUp

  • Bull Frog
  • Posts: 462
Re: Math question: find height from distance and two angles
« Reply #20 on: June 26, 2013, 01:16:29 AM »
Thanks to Kerry's explanations.

OK, lets go back to the starting point.
I don't know if Alan has already looked Paul's drawing.
I know that is not easy when translating the words to the drawing.
Generally speaking, our discussions should be all based on the same coordinate system, which means that all angles measured anticlockwise from X axis.
By looking at your drawing, the angle "A" you described actually differs to what Alan given.
Alan's: 90°53'36"
and yours: 180° - 90°53'36" = 89°06'24"
This explains why you got the height of 3192.2655
In other words, the angle "A" in your code can be simplified to:
(setq a (dtr 90.8933333333))

I attache my version here. Hope I have not misunderstood Alan's issue.
« Last Edit: June 26, 2013, 01:20:09 AM by MeasureUp »

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Math question: find height from distance and two angles
« Reply #21 on: June 26, 2013, 01:21:51 AM »
MeasureUp,
Your triangles are acute ;
Pauls is obtuse


I guess this whole thread is a perfect example of one of my favourite topics .. making sure we are all answering the correct question.

added:
For what it's worth, my assumptions about the problem were the same as Pauls ie the angles given represented the internal triangle angles.

« Last Edit: June 26, 2013, 01:35:10 AM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MeasureUp

  • Bull Frog
  • Posts: 462
Re: Math question: find height from distance and two angles
« Reply #22 on: June 26, 2013, 01:34:42 AM »
MeasureUp,
Your triangles are acute ;
Pauls is obtuse


I guess this whole thread is a perfect example of one of my favourite topics .. making sure we are all answering the correct question.
Thanks Kerry, again.
We shall now wait and see what Alan will say.  :-D
Of course, Paul can check if I haven't miss any points from you.

paulmcz

  • Bull Frog
  • Posts: 202
Re: Math question: find height from distance and two angles
« Reply #23 on: June 26, 2013, 07:16:02 AM »
As Kerry is saying, your triangle is acute. But, Alan specified one angle acute and the other obtuse.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Math question: find height from distance and two angles
« Reply #24 on: June 26, 2013, 08:49:36 AM »
Strange, I would always assumed we were talking Internal Angles with a triangle.
Other wise the orientation of the triangle comes into play.  :o

I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: Math question: find height from distance and two angles
« Reply #25 on: June 26, 2013, 08:59:22 AM »
Strange, I would always assumed we were talking Internal Angles with a triangle.

<fake southern drawl>That's the way I was learnt to do it.
CAD Tech

MeasureUp

  • Bull Frog
  • Posts: 462
Re: Math question: find height from distance and two angles
« Reply #26 on: June 26, 2013, 08:42:25 PM »
By looking at Paul's drawing again, lets think in this way, we now draw 2 construction lines.
One to the angle of 90.8933333333deg and another to 85.434722222deg.
If the 1st one placed on left while the 2nd on the right, we all know that they never intersect physically.
This is what the info was given by Alan.
It only makes sense if the 1st construction line drawn on the right.
Agree?
If we have a building/civil/survey background, we may better understand the info which Alan's given.
Hope I have explained what I think clearly.