Six quantities, three enough
Two lists set the known type and angle unit, above six fields for sides opposite each vertex and the three angles. With three quantities known, including at least one side, the rest follow uniquely. Controls start, load a sample, clear and copy. Unit choice matters, since degrees entered as radians or the reverse produces nonsense.
Steps
- Set the angle unit first: degrees for textbook problems, radians for programming.
- Choose the known type, such as three sides, two sides with included angle, or two angles with a side.
- Fill only the needed fields and leave others blank.
- Start and read the remaining sides, angles and area.
- Check that the angles sum to one hundred eighty degrees.
- Copy the result, clearing before a new problem.
Which combinations determine a triangle
Three sides need the cosine rule and must satisfy that any two sides exceed the third, or no solution exists. Two sides with the included angle take the cosine rule for the third side, then angles. Two angles with a side use the angle sum first, then the sine rule. Three angles alone fix shape but not size, giving infinitely many similar triangles, which the solver rejects. Two sides with a non-included angle is the ambiguous case with two, one or no solutions, and tools usually return one, leaving the alternate to you. Area follows Heron's formula or the included-angle form.
Common mistakes
Selecting the wrong angle unit. Swapping sides and their opposite angles. Solving with sides that violate the triangle inequality. Expecting side lengths from three angles. Accepting one solution in the ambiguous case. And using fullwidth punctuation that fails parsing.
Where planar solving ends
Spherical triangles need spherical formulas. Three-dimensional angles need vector tools. Exact radical forms need symbolic computation. And approximate answers carry rounding that propagates.