![]() |
|
![]() | ||
|
Subject:
Using the Law of Tangents to find all 3 angles in a triangle
Category: Science > Math Asked by: ejunk-ga List Price: $5.00 |
Posted:
10 Jul 2002 07:20 PDT
Expires: 09 Aug 2002 07:20 PDT Question ID: 38131 |
It's been a while since I took Trig. I am writing a script where I need to fingure out the angles of a triangle. I only know the lengths of two side. I'm guessing the Law of Tangents can be used: Where: a,b,c are the sides and A,B,C are the angles (b c) / (b + c) = tangent((B C) / 2) / tangent((B + C) / 2) Is there a way to change this equation so that I can calculate B and C (or B or C)? Thanks. | |
| |
|
![]() | ||
|
Subject:
Re: Using the Law of Tangents to find all 3 angles in a triangle
Answered By: websearcher-ga on 10 Jul 2002 10:15 PDT Rated: ![]() |
Hi ejunk: Yes, now that you have the lengths of all three sides of the triangle, the Law of Cosines is your best bet to compute the three angles. The Law of Cosines states that (for sides a,b,c and opposite angles A,B,C): b^2 + c^2 - 2bcCOS(A) = a^2 a^2 + c^2 - 2acCOS(B) = b^2 a^2 + b^2 - 2abCOS(C) = c^2 For your script, you'll want to rewirite these formulas as: A := arccos((b^2 + c^2 - a^2)/2bc) B := arccos((a^2 + c^2 - b^2)/2ac) C := arccos((a^2 + b^2 - c^2)/2ab) where "^" is the exponentiation operator and "arccos" is the inverse cosine operator. Hopefully whatever scripting language you are using supports inverse trig functions (because you'll need them). I hope this helps. Thanks to everyone else who participated in the discussion! Search on Google: Law of Cosines websearcher-ga | |
| |
| |
|
ejunk-ga
rated this answer:![]() best $5 I ever spent |
![]() | ||
|
Subject:
Re: Using the Law of Tangents to find all 3 angles in a triangle
From: davidsar-ga on 10 Jul 2002 07:40 PDT |
Sorry, ejunk-ga, but if you only know two sides of the triangle, there's no way to figure out much of anything -- there's an endless number of possibilities for the length of the third side and the combinations of angles in the triangle. You need at least one more piece of information -- either the length of the third side, or one of the angles of the triangle, in order to make any headway here. |
Subject:
Re: Using the Law of Tangents to find all 3 angles in a triangle
From: ejunk-ga on 10 Jul 2002 08:21 PDT |
The length of the 3rd side can be calculated using Pythagorean Theorem- a^2 + b^2 = c^2 |
Subject:
Re: Using the Law of Tangents to find all 3 angles in a triangle
From: homeuser-ga on 10 Jul 2002 08:40 PDT |
Davidsar is correct. Your law of tangents formula has 4 variables and you only know two of them. One equations but two unknowns--can't solve. Pythagorean theorem is only valid for right triangles. If this is the case, then just use basic sin, cos, or tan definitions (e.g. sin A = a/c, sin B = b/c, where A,B,C are the angles opposite sides a,b,c). In general if you have three sides of a triangle you are better off with the law of cosines: c^2 = a^2 + b^2 - 2*a*b*cos C (A,B,C defined as above). |
Subject:
Right Triangle or Law of Cosines
From: ulu-ga on 10 Jul 2002 09:04 PDT |
Pythagorean Theorem works only for right (90 degree) triangles. Then you could use the Law of Sines to compute the angle: A = ARCSIN(a/c) If that is not the case, you need the length of the third side and the Law of Cosines: a^2 + b^2 - 2abCOS(C) = c^2 Solving for the angle: C = ARCCOS((a^2 + b^2 - c^2)/2ab) You can use this for any of the angles. http://www.etap.org/mathfiles/english/grade7/hspm14/hspm14ins4.html http://www.ies.co.jp/math/java/trig/yogen_auto/yogen_auto.html http://mathworld.wolfram.com/LawofSines.html http://www.alltel.net/~okrebs/page93.html Good luck on your script! (I'm working on one too) |
Subject:
Re: Using the Law of Tangents to find all 3 angles in a triangle
From: msmorrisine-ga on 10 Jul 2002 09:14 PDT |
The question is not clear. This is -only- for right triangles? Which sides are known? Is the hypotenuse the -only- unknown side? Are you 100% sure it is -always- the hypotenuse that is unknown? |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |