How Many Decimals of Pi Do We Really Need? - Edu News

Authored by jpl.nasa.gov and submitted by amansaggu26
image for How Many Decimals of Pi Do We Really Need? - Edu News

Earlier this week, we received this question from a fan on Facebook who wondered how many decimals of the mathematical constant pi (π) NASA-JPL scientists and engineers use when making calculations:

Does JPL only use 3.14 for its pi calculations? Or do you use more decimals like say: 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360

We posed this question to the director and chief engineer for NASA's Dawn mission, Marc Rayman. Here's what he said:

Thank you for your question! This isn't the first time I've heard a question like this. In fact, it was posed many years ago by a sixth-grade science and space enthusiast who was later fortunate enough to earn a doctorate in physics and become involved in space exploration. His name was Marc Rayman. To start, let me answer your question directly. For JPL's highest accuracy calculations, which are for interplanetary navigation, we use 3.141592653589793. Let's look at this a little more closely to understand why we don't use more decimal places. I think we can even see that there are no physically realistic calculations scientists ever perform for which it is necessary to include nearly as many decimal points as you present. Consider these examples: The most distant spacecraft from Earth is Voyager 1. It is about 12.5 billion miles away. Let's say we have a circle with a radius of exactly that size (or 25 billion miles in diameter) and we want to calculate the circumference, which is pi times the radius times 2. Using pi rounded to the 15th decimal, as I gave above, that comes out to a little more than 78 billion miles. We don't need to be concerned here with exactly what the value is (you can multiply it out if you like) but rather what the error in the value is by not using more digits of pi. In other words, by cutting pi off at the 15th decimal point, we would calculate a circumference for that circle that is very slightly off. It turns out that our calculated circumference of the 25 billion mile diameter circle would be wrong by 1.5 inches. Think about that. We have a circle more than 78 billion miles around, and our calculation of that distance would be off by perhaps less than the length of your little finger.

We can bring this down to home with our planet Earth. It is 7,926 miles in diameter at the equator. The circumference then is 24,900 miles. That's how far you would travel if you circumnavigated the globe (and didn't worry about hills, valleys, obstacles like buildings, rest stops, waves on the ocean, etc.). How far off would your odometer be if you used the limited version of pi above? It would be off by the size of a molecule. There are many different kinds of molecules, of course, so they span a wide range of sizes, but I hope this gives you an idea. Another way to view this is that your error by not using more digits of pi would be 10,000 times thinner than a hair!

Let's go to the largest size there is: the visible universe. The radius of the universe is about 46 billion light years. Now let me ask 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)? The answer is that you would need 39 or 40 decimal places. If you think about how fantastically vast the universe is — truly far beyond what we can conceive, and certainly far, far, far beyond what you can see with your eyes even on the darkest, most beautiful, star-filled night — and think about how incredibly tiny a single atom is, you can see that we would not need to use many digits of pi to cover the entire range.

Read more from Marc Rayman on the Dawn Journal, where he writes monthly updates about the Dawn spacecraft currently exploring the dwarf planet Ceres to provide scientists with a window into the dawn of the solar system.

Can you use pi like a NASA scientist?

TAGS: Pi, Pi Day, Dawn, Voyager, Engineering, Science, Mathematics

ohhh__okay on March 31st, 2019 at 13:29 UTC »

Thank goodness because I can never remember the 41st digit when I'm calculating the circumference of the observable universe.

Hatsuwr on March 31st, 2019 at 13:05 UTC »

Well lets see... Let's assume the universe is a nice regular sphere with radius r and circumference c. Let's call our pi estimate 'pie'.

We want 2 * pi * r to be within the size of a hydrogen atom of 2 * pie * r.

So many possible understandings of the size of a hydrogen atom. Let's go with h = 1.06*10^-10 m for now. Say r = 4.4 * 10^26 m.

So |2 * pi * r - 2 * pie * r|< h

|2r (pi - pie)| < h

|pi-pie| < h/2r

So the difference between pi and our estimate needs to be within about 2.4 * 10^-37 1.2 * 10 ^ -37

40 might be overkill, depending on how you clarify some of the ambiguities!

Calmo_AK on March 31st, 2019 at 12:06 UTC »

That accuracy is not sufficient. We can do better