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.

Download

A standalone offline version is available for download: triangle-solver.html (right-click the link to save)

This file is free for personal use. For teachers or commercial use, please contact me to buy a registration for $10 USD.

More info