Determine whether a list of side lengths can form a right triangle
Contributed by:
Wolfram|Alpha Math Team
Examples
Basic Examples (2)
The set of lengths {3, 4, 5} forms a right triangle:
{2, 3, 4} does not form a right triangle:
Scope (2)
RightTriangleQ accepts triangle specifications:
RightTriangleQ applies to noninteger numbers:
Properties and Relations (2)
To determine whether the given ordering of integers forms a Pythagorean triple, use PythagoreanTripleQ:
Note that RightTriangleQ accepts any ordering of the edge lengths when determining if a right triangle can be formed from the edges, while a Pythagorean triple must be ordered:
Publisher
Wolfram|Alpha Math Team
Version History
-
2.0.0
– 23 March 2023
-
1.0.0
– 18 September 2020
Related Resources
Author Notes
To view the full source code for RightTriangleQ, run the following code: