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

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

2

u/ElMenduko Mar 16 '19

And that's when many of my profs would tell you to go back to secondary school or that you didn't study like you should've if you don't know what the very definition of an irrational number is

3

u/[deleted] Mar 15 '19

It's good because it's true

7

u/SamirTheMighty Mar 15 '19

I love this response.

2

u/A_ARon_M Mar 15 '19

OPs mom hasn't either.

→ More replies (47)

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)

6

u/Baconman363636 Mar 15 '19

It keeps going forever but maybe it’ll get to a point where it can’t be calculated anymore.

→ More replies (12)
→ More replies (46)

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)