home.social

Search

5 results for “pythagorus”

  1. Hunt primitive Pythagorean triples with

    #!/usr/bin/python3
    import sys,math
    n = int(sys.argv[1])
    print([(x,y,z) for x in range(1,n+1) for y in range(x,n+1,1) for z in range(y,n+1,1) if x**2 + y**2 == z**2 and math.gcd(x,y) == 1])

  2. Resistor networks frame a Pythagorean generalization, then get discarded for triangles. A 1986 footnote for people who still believe in the future.
    johndcook.com/blog/2026/10/14/

  3. I'm doing some calculations for some 3d modelling I'm doing, and it just occurred to me that the formula for a circle, $x^2+y^2 = r^2$, is the pythagorean theorem. Given the two are filed away separately in my brain, I don't think younger me realised this when learning this stuff, which is a little embarrassing.

    #math, #maths, #mathematics

Share on Mastodon

Enter the server where you have an account.