Readit News logoReadit News
Hayvok · 3 years ago
Summarized answer from the article.

> For JPL's highest accuracy calculations, which are for interplanetary navigation, we use 3.141592653589793

> by cutting pi off at the 15th decimal point… our calculated circumference of the 25 billion mile diameter circle would be wrong by 1.5 inches.

The author also has a fun explanation that you don’t need many more digits to reduce the error to the width of a hydrogen atom… at the scale of the visible universe!

louloulou · 3 years ago
It's a good metric to determine how advanced a civilization it. Would be cool to just compare pis with the aliens, and then whoever has the longest pi takes over, rather than fighting to extinction.
metadat · 3 years ago
Is this some kind of a pi-nus measuring contest joke?

Yeah, yeah, go ahead and downvote this one to death. I know we don't like jokes 'round these parts, especially low-effort immature ones. :~(

DonHopkins · 3 years ago
It's not how long your pi is, it's the circumference that counts.
euroderf · 3 years ago
... and the emcee asks for the fifty zillionth hex digit, but only Team HOOMINZ has the formula for an arbitrary hex digit in isolation of pi !
dskloet · 3 years ago
Calculating the circumference of a circle isn't the only thing pi is used for. And small errors at the start of a calculation can become big errors at the end. So I don't find this argument very convincing.
GuB-42 · 3 years ago
That's why they are using 15 decimal places, which in reality, is complete overkill. No instrument I am aware of is capable of measure with such accuracy, top of the line is usually at around 9 decimal places. This is a scale at which relativistic and quantum effects have to be considered.

That pi is 6 orders of magnitude more precise. The nice thing about having 6 and not just 1 or 2 (that would be sufficient) is that you don't have to worry too much about the exponential effect of compound error.

So really 15 decimal places is enough not to worry about pi not adding significant imprecision to your calculation, but not so ridiculous as to waste most of your time processing what is essentially random digits.

That it roughly corresponds to the precision of IEEE754 double precision floating-point numbers is probably no coincidence. This is maths that standard hardware can do really well. More than that requires software emulation (slow) or specialized hardware (expensive).

gnuj3 · 3 years ago
I love the fact that some random dude on HN is telling NASA that their calculations regarding space calculations are not very convincing. Internet can be a beautiful place.
chrisseaton · 3 years ago
> So I don't find this argument very convincing.

You think the NASA JPL is mistaken about how accurate they need Pi to be?

MikeDelta · 3 years ago
The impact of a higher precision in pi depends on the rest of the calculations or simulations; factors like the (roundoff) errors caused by the size of your floats and your other constants, the precision of your calculations (like your sine), or (roundoff) errors in your differential equations and timestep accumulations. And finally, you have uncertainties in the measurements of the world (starting conditions) you use for your simulations. I guess in NASA's case, a higher precision in pi doesn't add to the overall performance of their calculations, or at least not to a relevant one.
rrobukef · 3 years ago
But all measurements of weight, length, position/speed have errors multiple orders larger. Errors by second and third approximations will dominate. Let alone unpredictable (unknown) physics playing a role.
_HMCB_ · 3 years ago
Well then the problem isn’t Pi and any number of decimal places.
ternaryoperator · 3 years ago
This calculation demonstrates how our current 64-bit FP operations are wide enough for almost all physical world needs. But to make the point even clearer: in one 2^-64th of a second, an object moving at the speed of light would not cross the diameter of a hydrogen atom.

c in 2^64 = 1.625 × 10-11 m/s; width of a hydrogen atom: 2.50 ^10-11 m

__del__ · 3 years ago
if memory serves, the problem with ieee754 fp representation isn't the relative sizes of its largest and smallest possible values, but its uneven representation of the values between
saagarjha · 3 years ago
Double precision floating point gives you 53 bits of significance.
runlevel1 · 3 years ago
It's even more absurd than that:

Anything shorter than about 10^-43 sec is faster than light can travel a Planck length.

slyall · 3 years ago
According to Wikipedia LIGO is detecting gravitation waves was small as 10^-22 metres.
xxs · 3 years ago
64bit floating point IEEE754 uses 10bits for exponent, and one bit for the sign. It's not that all 64bits are dedicated for value representation.

If you meant that 64bit long is a rather large 20decimals, indeed it is.

HWR_14 · 3 years ago
2^-64 has little to nothing to do with 64-bit FP operations and is accurately represented in a 32-bit or even 16-bit float.
suifbwish · 3 years ago
If pi is truly infinite wouldn’t it eventually express a sequence of information which would be self aware if expressed in binary in a programmatic system?
tlonny · 3 years ago
My understanding (which might be wrong) is that just because PI is infinite and non-repeating, doesn't necessarily mean that every conceivable pattern of digits is present.

As a contrived example, consider the pattern:

01 001 0001 00001 etc.

This pattern is infinite and never repeats but we will never see two consecutive "1"s next to each other.

MauranKilom · 3 years ago
We know for a fact that pi is truly infinite, there's no "if" there. But we are not sure whether it contains every sequence of (e.g.) decimal digits.

Either way, your proposition works for "the list (or concatenation) of all positive integers in ascending order" as well. There is no deep insight in it, even if it were also true for pi.

anon25783 · 3 years ago
if you accept the premise behind this question (which I wouldn't dispute) then theoretically any information at all would be self aware given the right computer
terranstyler · 3 years ago
Bold claim in terms of IT (there exists currently no self-aware system in IT) but of course it contains all the info needed to build a human.

I'd rather say it contains the code to generate itself which should be much easier (= earlier) to find.

GuB-42 · 3 years ago
What you want is a disjunctive number, also called rich number or universe number.

It is an infinite number where every possible sequence of digits is present, and therefore, such a number contains the code of a self aware program, as well as the complete description of our own universe (hence the name "universe number") and even the simulation that runs it, if such things exist.

We don't know if pi is a disjunctive number, for what we know, though unlikely, the decimal representation of pi may only have a finite number of zeroes. It means we don't have the answer to your question.

empyrrhicist · 3 years ago
Sure, similar argument to a Boltzmann Brain.
ebingdom · 3 years ago
I wonder why they don't just use the highest precision possible given whatever representation of numbers they're using? I know these extra digits would be unlikely to ever matter in practice, but why even bother truncating more than necessary by the hardware? (Or do they not use hardware to do arithmetic calculations?)
OscarCunningham · 3 years ago
They do. This is precisely the number of accurate digits you get when you use a double (i.e. 64 bit floating point). https://float.exposed/0x400921fb54442d18
metadat · 3 years ago
> The author also has a fun explanation that you don’t need many more digits to reduce the error to the width of a hydrogen atom… at the scale of the visible universe

How many more, though?

<Perfectionist>1.5in of error per few billion miles seems a bit sloppy, even though I'm sure it fits JPLs objectives just fine.</>

Grimburger · 3 years ago
> our calculated circumference of the 25 billion mile diameter circle would be wrong by 1.5 inches

JPL uses imperial units?

Hayvok · 3 years ago
JPL uses metric for calculations.

It’s an education article, and the author mentions he first got the question from (presumably American) students so it makes sense he would answer in imperial units that an American middle schooler could understand.

anigbrowl · 3 years ago

  - hey space nerds, check out my new result
  - oh yeah what ya got math kid
  - new digits of Pi. Such fast, very precision!
  - not this shit again
  - it's so cool, *look at it*
  - tl;dr
  - but it's the key to the universe
  - ok ok, look we have to do actual space stuff
  - laugh now fools, while I grasp ultimate power

dang · 3 years ago
Related:

How Many Decimals of Pi Do We Really Need? - https://news.ycombinator.com/item?id=30023489 - Jan 2022 (10 comments)

How Many Decimals of Pi Do We Really Need? (2016) - https://news.ycombinator.com/item?id=24616797 - Sept 2020 (147 comments)

How Many Decimals of Pi Do We Need? - https://news.ycombinator.com/item?id=24267042 - Aug 2020 (2 comments)

How Many Decimals of Pi Do We Really Need? (2016) - https://news.ycombinator.com/item?id=15801317 - Nov 2017 (3 comments)

How Many Decimals of Pi Do We Really Need? - https://news.ycombinator.com/item?id=11316401 - March 2016 (120 comments)

How Many Decimals of Pi Do We Really Need? - https://news.ycombinator.com/item?id=11315974 - March 2016 (1 comment)

brudgers · 3 years ago
And now I am left pondering…

How many articles on how many decimals of pi do we really need do we really need?

xbar · 3 years ago
At least one more. What else would dang track?

Deleted Comment

jmfayard · 3 years ago
The Bible uses PI = 3 and that's good enough for me

> And he made a molten sea, ten cubits from the one brim to the other: it was round all about, and his height was five cubits: and a line of thirty cubits did compass it round about.

1 Kings 7:23 King James

llimos · 3 years ago
Actually...

In the original Hebrew version of I Kings, in that verse the word for 'circumference' is traditionally written differently to how it is read (there are instances of this kind of thing all over the Bible [1])

Each letter in Hebrew has a numeric value [2].

As written: קוה = 111

As read: קו = 106

Ratio between them: 111/106 = 1.04717...

Which is exactly the ratio between the reported value of pi (3) and the real value to 4 decimal places (3.1415)

So maybe they did have a better idea than "3". The 3 in the verse is to keep it simple, but there's a clue there for those who want the real number.

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

[2] https://en.wikipedia.org/wiki/Gematria

midasuni · 3 years ago
It was round, was it a perfect circle?

How many significant figures was it to? How accurate was construction and measuring techniques? 9.7 diameter would be reasonable as “10”, as would 30.47 being “30”, with values being well within 5%.

jonatron · 3 years ago
Should've been at 7:22 King James
8n4vidtmkvmk · 3 years ago
you mean 7:21 given the circumstances
doliveira · 3 years ago
Funny how that's how described in the Pentateuch's tabernacle: God sends detailed instructions about how many buttons (?) the priest's clothing should have but when it comes to PI "yeah, 3 is good enough"
quickthrower2 · 3 years ago
Unless nautical cubits are different from land based cubits
frumiousirc · 3 years ago
They are wetter.

Deleted Comment

BMc2020 · 3 years ago
If you read the novel Contact by Carl Sagan (it's not in the movie) you get to find out what secret is hiding in PI's digits.
Scarblac · 3 years ago
If pi is normal, it contains all possible secrets encoded within it, right? Including copies of that book in various languages. It's Borges' library.
2-718-281-828 · 3 years ago
But it also contains all possible contradictions and negations of all possible secrets - so, you don't know which is the "true" secret.
quickthrower2 · 3 years ago
Or the typewriter’s monkey
Tao3300 · 3 years ago
jonah · 3 years ago
Also reminds me of https://xkcd.com/2170/
nadavision · 3 years ago
Obligatory "there truly is an xkcd for everything."
andreareina · 3 years ago
That ending filled me with such a feeling of wonder as a kid. Even now, and that's understanding the implication of pi very likely being normal.

Dead Comment

photochemsyn · 3 years ago
If space can be curved, non-flat, then can't pi take on a wide variety of values, like near the high curvature of space near a black hole? As I suspected...

> "Now, some fun facts: for a circle of radius 1000 miles, the value of "π" would be around 3.10867! For a 50 mile radius, "π" would be 3.14151. And even the engineers who built the Large Hadron Collider should have worried about the value of "π", since for a circular structure 2.7 miles in radius (which is the case for the LHC) "π" would be 3.141592415! So, we strongly encourage all high energy physicists and their sympathizers to celebrate Pi Day two minutes earlier than the rest of the world to honor our non-Euclidean geometry! As for the community of general relativity... we encourage them to redo all the calculations in a non-minkowskian metric for a non-massless Earth to know exactly when they should celebrate Pi Day. Also, advocates of the Indiana Pi Bill who root for legally making π equal to 3.2 should probably reconsider and change it to a value smaller than 3.1415926, since no circle on Earth would give them their desired result! Though if the surface of our planet was a saddle, that would be a completely different matter..."

https://physics.illinois.edu/news/34508

anderskaseorg · 3 years ago
π is defined as the ratio between a circle’s circumference and diameter in ideal flat Euclidean space. You can measure circles in other spaces and get different numbers, but those numbers are not π. (That’s why your linked article writes π′ or “π” when referring to those numbers.)
xigoi · 3 years ago
Or even better, it's defined as the smallest positive root of the sine function. Much simpler definition.
flatline · 3 years ago
Isn’t that just what you get with double precision floats?
kens · 3 years ago
Yes, this is kind of a pointless post since it doesn't answer the question in the title. Instead, they just show that the "default" number of digits is enough.
brudgers · 3 years ago
JPL needs the number of digits in a double float because JPL needs to use double floats because JPL is performing engineering.

Paradoxically, double floats are engineered to provide more digits than you need because you need more digits than you need when engineering because if you don’t have insignificant digits to drop, you don’t have enough digits.

mlyle · 3 years ago
> Instead, they just show that the "default" number of digits is enough.

The "default" number of digits was chosen and became the default because it's enough for mostly everything.

_moof · 3 years ago
It is, yes.
hackernewds · 3 years ago
double precision float lens are related to the number of digits of pi that are relevant?
xvedejas · 3 years ago
Well kinda, the size of the mantissa is certainly chosen to be large enough to give the precision scientific computing would "typically" need, but that's considering trade-offs and just being vaguely good enough for most cases. Sometimes we use 80-bit extended precision floating point for example.
anothernewdude · 3 years ago
Are there no calculations that would compound this error though? Where you use multiple circles, or conversions and the errors would grow?
klodolph · 3 years ago
Yes, the error in floating point calculations compounds. However, you can figure out how fast it compounds, and there are different algorithms where it compounds at different rates.

Generally speaking, if you think you need more than double precision, what you really want is double precision and a better algorithm. Generally speaking.

Keep in mind that all of your actual measurements are going to be way less precise than double precision. Tools like LIGO can measure differences to better than double precision (1 part in 10^21, or something like that), but they're not actually making any measurements to that kind of precision, they're just measuring changes of that magnitude.

mlyle · 3 years ago
> Generally speaking, if you think you need more than double precision, what you really want is double precision and a better algorithm. Generally speaking.

Though a lot of the time, the better algorithm is using an error accumulator-- so 2 doubles. This tends to outperform 80-bit extended precision, double-double, or long double arithmetic... but more precision would often also suffice and use the same amount of space.

kloch · 3 years ago
Repeated summation can compound rounding errors and reduce the effective precision of floating point encoded numbers.

Doubles have ~16 decimal digits of precision but adding a billion doubles together sequentially (simple summation) could with worst case data reduce your effective precision to only ~7 digits. Random data would tend to have a sqrt(n) effect which would leave you with ~11 digits.

Several algorithms have been devised to reduce or even eliminate this effect. Kahan summation for example typically results in the precision loss of a single addition, effectively eliminating the compound errors. https://en.wikipedia.org/wiki/Kahan_summation_algorithm

mjburgess · 3 years ago
This is one of the frustrating elements in people who use this argument to say that computers can simulate abitary physical systems.

OK, so simulate the 10^30 atoms in my table, give me their spatio-temporal evolution in structure under gravity, etc. etc. How much preicision in pi do you need, when you are compounding interactions of 10^30 atoms each tick? Basically infinite.

thenoblesunfish · 3 years ago
It’s very interesting how effective double precision is for doing physical calculations. Higher precisions exist but almost all of the time the answer is not to use them, but to scale your equations differently.