Project Nayuki


Triangle solver (JavaScript)

Program

Triangle diagram with sides and angles labelled
Variable Input Solution Solution 2
Area (square units):
Status:

Tips: In the triangle diagram, click on a letter to jump to that input. When solved, hover over a letter to read its value.

Description

This JavaScript program calculates the missing sides and angles of a triangle. Give exactly 3 pieces of information, including at least one side.

Notes:

The source code is available for viewing.

More info