This article says that NASA uses 15 digits after the decimal point, which I’m counting as 16 in total, since that’s how we count significant digits in scientific notation. If you round pi to 3, that’s one significant digit, and if you round it to 1, that’s zero digits.

I know that 22/7 is an extremely good approximation for pi, since it’s written with 3 digits, but is accurate to almost 4 digits. Another good one is √10, which is accurate to a little over 2 digits.

I’ve heard that ‘field engineers’ used to use these approximations to save time when doing math by hand. But what field, exactly? Can anyone give examples of fields that use fewer than 16 digits? In the spirit of something like xkcd: Purity, could you rank different sciences by how many digits of pi they require?

  • HobbitFoot @thelemmy.club
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    6 months ago

    Structural engineer, and it depends. If I am doing structural or quantity calculations, I can get away with 3.14 (3 digits).

    If I’m dealing with survey coordinates defined by horizontal curves, I’ll have to use at least 10 digits.

    • unwarlikeExtortion@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      So do I have this right - if you think about the building being structurally sound you can get away with more error than if checking whether you’re accidentaly on the neighbour’s plot of land?

      • maynarkh@feddit.nl
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        Not a civil engineer, but an engineer here, if you’re doing structural soundness, you usually apply a generous margin of error, so it doesn’t have to be that tight, you’re building it 3 times as strong as needed anyway.

        While if you’re calculating where your plot is, you don’t want to leave a few meters empty or go past a few meters “just to be sure”.

      • HobbitFoot @thelemmy.club
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months ago

        Yes.

        There isn’t that much benefit to knowing if something is 4.5672% overstressed compared to being 5% overstressed. There are also some cases where the method of calculating demand or capacity isn’t that precise; the design code will show the simple equation but have a more complicated equation that better models what is happening in the commentary.

        In contrast, some surveying is dealing in a state’s coordinate plane. This can be very precise, with some measurements provided down to the 1/10000 of a foot to keep error down when they measure it in the field. In that case, you need to be more precise.

  • Vanth@reddthat.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    3.14159

    Design of mechanical parts, specifically machined. 0.001" is a fairly tight tolerance for my applications, 0.0001" is going to cost a pretty penny and is used judiciously. We don’t really need to go to 3.14159 but I honestly think we do because it rhymes.

  • Asidonhopo@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Retail, and to my knowledge among all my coworkers we have used zero digits of pi.

    When I code in C++ I use 15 digits of pi after the decimal point (double float) but I have only rarely coded for money and have never used pi for those work products, so again, zero digits on the clock.

    Ditto for restaurant work, although 2 decimal points would be more than enough if I needed the volume of a cake or other round food.

  • nycki@lemmy.worldOP
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Answering my own question: I work in web development and my usual value for pi is the standard JavaScript Math.PI. JavaScript uses 64-bit floats, which are accurate to about 15 decimal places. But that’s how many digits the computer uses. For practical math, I don’t think I’ve ever needed more than 2 digits of accuracy in an equation involving pi.

  • stanka@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Chip R&D. We only use 1’s, 0’s if management is feeling generous. There are no circles, no need for pi.

  • Thurstylark@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    Ya know, this thread has inspired me. I’m a sound engineer, and find myself yelling “check one two three four” in the michrophone to test it all the time. I’m gonna start reciting the digits of Pi instead, and then as I learn them, I’ll progressively advance how many numbers of Pi that I use in my everyday job :D

    I work at a library, though. I should probably just go with poetry or Douglas Adams or something, but this makes me sound much more impressive

  • livus@kbin.social
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Usually 8 decimal places.

    But I work in HASS so we don’t have much call for pi.

  • BigDanishGuy@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Embedded engineer, working in education. I use 3 for mental estimations and whatever is stored in the calculator, I have happened to grab, for “precision” work. Sometimes I’ll even round pi to 4, to build in some tolerance when calculating materials.

  • Ada@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    I’m Australian. I normally manage a pie with 5 digits, unless it’s particularly crumbly or runny, in which case I will sometimes use 10!

    • FaceDeer@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      Software Engineering too, I just use std::numbers::pi. Don’t know how many digits it is offhand.

    • Zagorath@aussie.zone
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      6 months ago

      TIL a 64-bit float is accurate to 16 sigfigs.

      Edit: actually, out of curiosity I decided to try and calculate it. I’ve very possibly done the wrong calculation, but what I did was log2(10x)=64, which works out to x≈19. Which isn’t 16, but is very close, and when you consider the way the float actually works it wouldn’t be too surprising that it was lose some information (the sign bit, for example, is immediately completely lost in this context).

        • Zagorath@aussie.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 months ago

          Yeah I wasn’t sure if it would be correct to throw out the exponent entirely or if it might end up contributing some amount to the final accuracy of the number. I hadn’t spent a lot of time thinking about the problem.

          • explore_broaden@midwest.social
            link
            fedilink
            arrow-up
            0
            ·
            6 months ago

            Yeah the exponent just allows you to represent lots of magnitudes, but it wouldn’t contribute to the accuracy because you basically have 1.xyz * 2exponent. So the xyz significand is the only part that counts for significant digits. Although I guess in some sense you are partially right, because the exponent exists it is assumed that the first bit is always one, since otherwise you would just adjust the exponent to the first one, so only 52 bits have to be stored.

  • RvTV95XBeo@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Mechanical engineer here - Matlab uses 16 digits for pi(), so that’s my go-to. When doing some larger thermodynamic simulations, I sacrifice some digits of pi to get more computational headroom. But that’s only after I get really annoyed at the code, and it almost never helps (but rarely hurts, as well)

  • davel@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    if you round it to 1, that’s zero digits.

    Isn’t rounding to zero digits a nonsensical concept? And “1” is one digit, not zero digits.

    • Zagorath@aussie.zone
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      Isn’t rounding to zero digits a nonsensical concept?

      Mostly, yeah. But sometimes you really just need to know the order of magnitude, which is a process kinda similar to rounding, but does lose a digit in the process, so you could kinda argue—if you squint a little—that it’s “rounding to zero digits”.

      • nycki@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        6 months ago

        That’s basically my reasoning, yeah. Specifically, in floating point notation; if you get rid of all the mantissa bits, you’d be left with 1 * 2^0. I suppose it could be 0 * 2^0, but a leading 1 is implied, since virtually all numbers are nonzero.

        • Perhyte@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 months ago

          Small correction: Pi lies between 2^1 and 2^2, so its floating-point exponent is 1. With all the mantissa bits cleared you’d be left with 1 * 2^1, not 1 * 2^0.