I have a triangle that I know the lengths of all the sides. But I need to know the angles. Needs to

poklanima5lqp3 2022-05-09 Answered
I have a triangle that I know the lengths of all the sides. But I need to know the angles. Needs to work with non-right triangles as well.
I know it is possible, and I could have easily done this years ago when I was in trig, but it has completely slipped my mind.
I'd prefer a solution that I can code into a function, or something that does not require constructing right triangles from it.
You can still ask an expert for help

Expert Community at Your Service

  • Live experts 24/7
  • Questions are typically answered in as fast as 30 minutes
  • Personalized clear answers
Learn more

Solve your problem for the price of one coffee

  • Available 24/7
  • Math expert for every subject
  • Pay only if we can solve it
Ask Question

Answers (1)

Blaine Andrews
Answered 2022-05-10 Author has 20 answers
As has been mentioned in comments, the formula that you're looking for is the Law of Cosines. The three formulations are:
c 2 = a 2 + b 2 2 a b cos ( C )
b 2 = a 2 + c 2 2 a c cos ( B )
a 2 = b 2 + c 2 2 b c cos ( A )
You can use this law to find all three angles. Alternatively, once you have one of the angles, you can find the next using the Law of Sines, which states that:
sin A a = sin B b = sin C c
And of course, once you have solved for two of the angles, you need only subtract their sum from 180 degrees to get the measure of the third.
Not exactly what you’re looking for?
Ask My Question

Expert Community at Your Service

  • Live experts 24/7
  • Questions are typically answered in as fast as 30 minutes
  • Personalized clear answers
Learn more