← Back to context

Comment by schiffern

5 days ago

  >The ratio between the areas of a unit circle (or hypersphere in whatever dimension you choose) and a unit square (or hypercube in that dimension) in any system will always require infinite precision to describe.

Easily fixed! I choose 1 dimension. :)

Hah, nice find :)

  • Good show, and I appreciate your sentiment about the "messiness" of pi.

    There's a unit-converting calculator[0] that supports exact rational numbers and will carry undefined variables through algebraically. With a little hacking, you can redefine degrees in terms in an exact rational multiple of pi radians. Pi is effectively being defined as a new fundamental unit dimension, like distance.

    Trig functions can be overloaded to output an exact representation when it detects one of the exact trigonometric values[1] eg cos(60°) = 1/2. It will now give output values as "X + Y PI", or you can optionally collapse that to an inexact decimal with an eval[] function.

    That's the closest I got to containing the "messiness" of pi. Eventually I hit a wall because Frink doesn't support exact square roots, so most exact values would be decimals anyway.

    Still, I can dream!

    [0] https://frinklang.org/

    [1] https://en.wikipedia.org/wiki/Exact_trigonometric_values

    • I suppose you could have added root two as a fundamental as well. I suppose that's another problem with the irrationals: two irrationals that aren't linearly related by a rational are effectively two fundamentals from each others perspective.

      It's a sad conclusion - though. Computation exists in the countable space. So there is no computationally representable symbolic model that can ever algebraically capture the reals.

      The other thing that came to mind when you mentioned root-2 is a similar realization as with pi. That somehow a diagonal is not well defined in discrete terms with respect to two orthogonal vectors. So here once again, you have this weird impedance mismatch between orthogonality (a rotational concept) and diagonals (a linear concept).

      I don't have the formalisms to explore these thoughts much further than this.. so it's hard to say whether this is just some trivial numerological-like observation or if there's something more to it. But it's kinda pleasant to think about sometimes.

      1 reply →