Math Archives Homepage

Triangle Solution Program

John Kennedy
Mathematics Department
Santa Monica College
1900 Pico Blvd.
Santa Monica, CA 90405

The TRIANGLE program solves triangle problems using applications of the Law of Sines and/or the Law of Cosines. In a typical problem, three known parts of a triangle are entered and the program will calculate the other three parts. There are 19 possible cases and this program handles all of them, including the ambiguous case of the Law of Sines. So if two triangles match the given input, this program yields both answers. This program also draws the triangle solutions to scale on a graphics screen and in addition to calculating all the sides and angles it also calculates the area and the perimeter. This program requires some form of graphics such as CGA or EGA or VGA hardware. The program automatically adapts to the highest graphics resolution of the hardware it finds.

(from triangle.abs)
Download [47 KB].