How to calculate
For integers m > n > 0 use m² − n², 2mn and m² + n². Multiply by the chosen scale. A triple is primitive when the greatest common divisor is one.
Worked example
Use Integer m 2 · Integer n 1 · Scale 1. The result is 3, 4, 5.
Input and result notes
Enter numbers using the same units. Rounded results are marked with ≈.
MIT Mathematics for Computer Science