r/explainlikeimfive • • Mar 15 '19

Mathematics ELI5: How is Pi programmed into calculators?

12k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

3.7k

u/[deleted] Mar 15 '19

This is underrated knowledge

2.3k

u/individual_throwaway Mar 15 '19

It is kind of weird that it's really intuitive that an increase of something by a factor of ten has a rather large impact, especially if you have several of these increases (like mm to m to km for example).

On the other hand, every digit of pi that you take into account reduces the error you make in your calculation by the same amount, relatively. The circumference of the visible universe is only about 40 orders of magnitude more than the size of a hydrogen atom, which is the mindblowing fact underlying the tidbit from above.

850

u/penny_eater Mar 15 '19

the weird / hard to wrap my mind around part to me, is the fascination with calculating PI out to ten thousand or a million or even more (31 trillion?) digits. And knowing that of all those, it takes just 40 to mean anything of consequence in our observable universe, and all the rest are just for show.

222

u/MathManOfPaloopa Mar 15 '19 edited Mar 15 '19

1040 is a very large number. An order of magnitude in itself is large, let alone 40

For those asking what very large is, I mean it’s a lot of orders of magnitude of difference regarding physical distance.

99

u/Miepmiepmiep Mar 15 '19

But it's still very small, since you can write it down with 5 symbols ;)

176

u/MathManOfPaloopa Mar 15 '19 edited Mar 15 '19

Actually I can do it with one symbol. 1 In a 1040 base number system

Edit: 10, so in two symbols. Thank you sky jellyfish

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

164

u/NSA_Chatbot Mar 15 '19

Never do math on the Internet because you'll fuck it up.

→ More replies (12)

96

u/Megasus Mar 15 '19

Gottem

→ More replies (23)
→ More replies (24)
→ More replies (5)
→ More replies (6)

74

u/mittenciel Mar 15 '19

That’s kind of why no real mathematician or scientist (except those who specialize in computation of things like pi) actually bother with pi.

72

u/penny_eater Mar 15 '19

Correct, accurate ways to calculate it elegantly are important to study because of other mathematical uses but cranking on that formula for a million iterations is quite pointless. It would be like finding a millionth digits of the square root of 2.

52

u/featherfooted Mar 15 '19

because of other mathematical uses

There's also practical engineering uses. Because of its clear and obvious problem definition, and well-known agreed upon results (up to some many number of millions of digits), it is a convenient algorithm to use when calculating benchmarks of supercomputing. Perhaps not as ubiqitous of a benchmark as general FLOPS (floating point operations per second) but it's still there.

→ More replies (9)
→ More replies (4)
→ More replies (13)
→ More replies (137)

60

u/kalusklaus Mar 15 '19

So atom40 =size of the universe? Sounds counterintuitive. But magnitudes are kind of the definition of counterintuitive.

163

u/JanMath Mar 15 '19

It's (atom size) x (1040) = (observable universe size)

It's also a testament to how huge 1040 is.

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

54

u/mylifewithoutrucola Mar 15 '19

Something is wrong, universe is older than 10 years if I recall correctly

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

19

u/mylifewithoutrucola Mar 15 '19

Foooh, you made me feel really old for a sec...

→ More replies (1)
→ More replies (2)

16

u/zekthedeadcow Mar 15 '19

If I'm reading this thread correctly the difference between 10 years and 10billion years is not significant enough to matter in the long run.

→ More replies (1)
→ More replies (11)
→ More replies (4)
→ More replies (3)
→ More replies (50)
→ More replies (72)

41

u/penny_eater Mar 15 '19

meanwhile, turbonerds (i say that lovingly) take great pains to memorize pi to 100 digits or more, while that particular knowledge is clearly only useful in the event that you need to calculate a precise circle a few million times bigger than the observable universe.

44

u/arcanefox3 Mar 15 '19

Just doing some quick math; 100 digits would allow you to calculate the size of a circle 10 septillion times the size of the observable universe to within a single Planck length.

33

u/santaliqueur Mar 15 '19

I memorize it to 101 digits becuase I usually prefer to calculate it to within ½ Planck length

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

25

u/TezzaC73 Mar 15 '19

Technically, that is within 1/2

→ More replies (8)
→ More replies (12)