Problem 60936. Classify triangles as acute, obtuse, or right
In an acute triangle, the three interior angles are acute, or smaller than 90 degrees. In an obtuse triangle, one angle is obtuse, or larger than 90 degrees. In a right triangle, one angle is a right angle, or equal to 90 degrees.
Write a function to classify a triangle as acute, obtuse, or right. The input to the function will be two 1x3 vectors, one with the x coordinates of the vertices of the triangle and the other with the y-coordinates. A small tolerance will likely be required in the cases of the right triangles.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
More from this Author306
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!