Primitive Pythagorean Triangles

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


Updated 24 Sep 2022

View License

A set of programs using Euclid's and six other formulas to generate and visualize all primitive Pythagorean triples. No for-loops or if-then statements are used in the programs. The formulas were created following visual observations of the way the Euclid's Pyhtogrean triples are geometrically distributed and the relationships among them. See the description in the programs for more details.

Cite As

Ismael Abdulrahman (2022). Primitive Pythagorean Triangles (, 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!