Module grscheller.boring_math.cli.pythag3
Entry point for the pythag3 cli script.
Functions
def pythag3_cli() ‑> None-
Prints tuples of primitive Pythagorean triples.
- Pythagorean triple are
3integersa, b, cwherea**2 + b**2 = c**2 - such a triple is primitive when
a, b, c > 0andgcd(a, b, c) = 1 - geometrically
a, b, crepresent the sides of a right triangle
Usage: pythag3 [m [n [max]]]
# of args Prints all possible triples (a, b, c)satisfying3m <= a <= nanda,b,c <= max2m <= a <= n1a <= m03 <= a <= 100 - Pythagorean triple are