Primitive Pythagorean Triangles - Formulas and Visualization

version 1.3.13 (13.9 KB) by Ismael Abdulrahman
A set of programs to generate and visualize all primitive Pythagorean triples using Euclid's and six other derived formulas.

9 Downloads

Updated 3 Oct 2022

View License

A set of programs using Euclid's and seven other derived formulas (P2 to P8) to generate and visualize all primitive Pythagorean triples. No for-loops or if-then statements are used in the programs to generate the triples except for visualization purposes. The formulas were created following visual observations of the way Euclid's Pyhtogrean triples are geometrically distributed and the relationships among them.
Example (image 10MB):
Example (image 18MB)
Example (pdf):

Cite As

Ismael Abdulrahman (2022). Primitive Pythagorean Triangles - Formulas and Visualization (https://www.mathworks.com/matlabcentral/fileexchange/117950-primitive-pythagorean-triangles-formulas-and-visualization), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!