• xthexder@l.sw0.com
      link
      fedilink
      English
      arrow-up
      61
      ·
      4 months ago

      Wait… that’s not an approximation at all! That equals exactly pi. If I understand the math correctly, it’s effectively a formula for the area of a unit circle.

      • OrganicMustard@lemmy.world
        link
        fedilink
        English
        arrow-up
        56
        ·
        4 months ago

        That should be an approximation. To get exactly pi the range of both integrals should be from minus infinity to infinity like this. It’s the integral of the 2D Gaussian, which is fairly known.

          • kata1yst@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            35
            ·
            4 months ago

            And because it always bears repeating;

            According to JPL’s Chief Engineer for Mission Operations and Science, Marc Rayman-

            Let's go to the largest size there is: the known universe. The radius of the universe is about 46 billion light years. Now let me ask (and answer!) a different question: How many digits of pi would we need to calculate the circumference of a circle with a radius of 46 billion light years to an accuracy equal to the diameter of a hydrogen atom, the simplest atom? It turns out that 37 decimal places (38 digits, including the number 3 to the left of the decimal point) would be quite sufficient.

            • Justin@lemmy.jlh.name
              link
              fedilink
              English
              arrow-up
              12
              ·
              edit-2
              4 months ago

              Technically you need another 20 digits if you want to get down to a Planck length. (57 digits in total)

            • daqu@feddit.org
              link
              fedilink
              English
              arrow-up
              2
              ·
              4 months ago

              So the number 3 should be close enough for home use. Good to know. Thanks!

        • xthexder@l.sw0.com
          link
          fedilink
          English
          arrow-up
          17
          ·
          edit-2
          4 months ago

          Ah, you’re right. I was thrown off by WolframAlpha saying the integral = π ≈ 3.1416 Both of those should be ≈

          (x^2 + y^2)=1 is the equation for a unit circle, so it’s definitely related. Just not quite how I thought.

          • OrganicMustard@lemmy.world
            link
            fedilink
            English
            arrow-up
            9
            ·
            4 months ago

            Also the 2D gaussian integral is used to give an insight on why the 1D gaussian integral is sqrt of pi. Here is a video with cool visualization for anyone interested.