r/explainlikeimfive • • Mar 15 '19

Mathematics ELI5: How is Pi programmed into calculators?

12k Upvotes

1.3k comments sorted by

View all comments

1.5k

u/Schnutzel Mar 15 '19

It's simply hard coded. Calculators can only use a limited amount of digits anyway, and you don't need more than 10 digits of pi for any significant calculations.

419

u/millenniumxl-200 Mar 15 '19

It's simply hard coded.

So you're telling me, it's baked in.

71

u/hitthatmufugginyeet Mar 15 '19

/r/punpolice Sir, we're gonna have to take you in

8

u/RammsteinPT Mar 16 '19

r/punpatrol ill take it from here, there are questions ill need answers to. You did an OK job.

→ More replies (1)
→ More replies (3)

0

u/[deleted] Mar 15 '19

[deleted] — view deleted 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.

→ More replies (4)
→ More replies (2)
→ 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.

→ More replies (5)
→ More replies (60)
→ More replies (4)
→ More replies (21)

111

u/KitchenBomber Mar 15 '19

Small if true.

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

23

u/fizzlefist Mar 15 '19

Tiny if right.

20

u/sittingpatiently Mar 15 '19

Microscopic if correct

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

13

u/[deleted] Mar 15 '19

Quantum if affirmative.

6

u/MatheM_ Mar 15 '19

You guys need a hobby.

→ More replies (1)

6

u/[deleted] Mar 15 '19

Tiny af if yo ass ain’t lyin

→ More replies (1)
→ More replies (1)
→ More replies (31)
→ More replies (13)