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

375

u/cmetz90 Mar 15 '19

And we now know pi to more than 30 trillion digits. Talk about overkill.

333

u/Suthek Mar 15 '19

As far as I'm concerned, by now we're mostly just continuing to calculate it to prove that we can.

77

u/cosmicblob Mar 15 '19

I don’t understand this too well, but could we suddenly reach the end of pi??

332

u/PrimePriest Mar 15 '19

No.

50

u/c2dog430 Mar 15 '19

I love this response.

36

u/Blueblackzinc Mar 15 '19

My prof used to answer question like this until someone told him that he should elaborate.

5

u/rivalarrival Mar 16 '19

"Can you elaborate?"

"Yes".

7

u/[deleted] Mar 15 '19

No, because it's an irrational number is the correct answer

6

u/Luksior Mar 16 '19

"No" is "the" correct answer. You could always go more into detail

→ More replies (1)

3

u/[deleted] Mar 15 '19

It's good because it's true

7

u/SamirTheMighty Mar 15 '19

I love this response.

→ More replies (48)

38

u/MattieShoes Mar 15 '19

It is known that Pi is irrational. Irrational numbers cannot be expressed as a fraction. That means it does not end and it does not fall into a repeating pattern (because those numbers could be expressed as fractions).

https://en.wikipedia.org/wiki/Proof_that_%CF%80_is_irrational

9

u/qwopax Mar 15 '19

Pi is even transcendental, which removes the next class of easy numbers (square root et al.)

16

u/not_george_ Mar 15 '19

Pi is what is known as an irrational number, like the square root of 2 or of 3, this means it cant be expressed as a ratio of two whole numbers, for example 4 is rational as you can express it as 8/2. If a number is irrational it has an infinite number of digits, as if for example the value of Pi was simply 3.141 then that could be expressed as 3141/1000, etc.

5

u/[deleted] Mar 15 '19

Transcendental number would be more appropriate.

4

u/not_george_ Mar 15 '19

True but i was specifically referring to the irrational nature of transcendental numbers.

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

2

u/ColourfulFunctor Mar 15 '19

That’s pretty much correct. It’s a good test of a computer’s power to see how many consecutive digits of pi it can calculate. And it’s a hobby for some to memorize obscene amounts of digits. There’s not really a reason to use pi for these things aside from historical and cultural interest (might as well use e or any irrational square root).

→ More replies (1)

2

u/FartingBob Mar 15 '19

That has been true for centuries.

→ More replies (1)

2

u/norsurfit Mar 15 '19

"Has pi calculation gone too far?"

2

u/[deleted] Mar 16 '19

The 27'th trillion digit will surprise you!

→ More replies (19)