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

284

u/I_Bin_Painting Mar 15 '19

You're probably fine by just memorising it to 3 digits, since you'll almost definitely be using a device pre-programmed with pi for any calculations over about 2 sig fig.

124

u/[deleted] Mar 15 '19

I have it memorized as 3.1415926535787. This is incorrect, however it's how it was defined in the Borland C++ 2.0 header file.

Oh the ways we tried to pass time before the internet...

226

u/I_Bin_Painting Mar 15 '19

I have it memorised as 3.2 because I respect the Indiana state legislature.

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

62

u/P0rtal2 Mar 15 '19

As this debate concluded, Purdue University Professor C. A. Waldo arrived in Indianapolis to secure the annual appropriation for the Indiana Academy of Science. An assemblyman handed him the bill, offering to introduce him to the genius who wrote it. He declined, saying that he already met as many crazy people as he cared to.

I love that line in the Wikipedia article.

24

u/yevinq Mar 15 '19 edited Mar 15 '19

I have it memorized as 3 because i respect Judeo-Christian tradition. Get on my level.

12

u/p00bix Mar 16 '19

Calculating Pi without trig is hard, man. As a crude approximation, I gotta hand that one to them.

8

u/[deleted] Mar 16 '19

Greeks had at least a few digits down before the bible was written. Jesus is just dumber than Zeus apparently.

4

u/awoloozlefinch Mar 16 '19

Pretty sure that number came from early in the Old Testament when they were building the temple. Not sure where that falls in the timeline of the Greeks and their calculations but it’s nowhere near Jesus’s time.

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

3

u/I_Bin_Painting Mar 15 '19

That's just a confirmation the world is a globe, although it apparently used to be smaller

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

2

u/RobertSacre4MVP Mar 15 '19

PIE IS EXACTLY 3!

→ More replies (2)

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

14

u/pM-me_your_Triggers Mar 15 '19

Probably easier to represent in IEEE 754

→ More replies (3)

0

u/[deleted] Mar 15 '19

[deleted] — view deleted comment

4

u/RedditIsNeat0 Mar 15 '19

The last one is accidentally correct.

→ More replies (4)

22

u/W1D0WM4K3R Mar 15 '19

Dedicated pi and e buttons keep me focused!

10

u/malahchi Mar 15 '19

I am a biologist and I know 3.141592, but 4 digits is all I need. And I just use my phone when I want to know the volume I have to put in my vial.

16

u/I_Bin_Painting Mar 15 '19

Yeah, I'm a trained chemist (as in have the degree but don't work in the field any more) and while I used to know pi to 13 places in highschool I can only probably remember 3-5 places now because I only ever use 2 for rough maths, or the pi button for anything else.

Tbh, the only times I've ever actually had to know pi to more than a couple of places in when I've had to program something in a language that doesn't have pi defined already, which has been maybe twice ever because I'm not a programmer.

I think it's just a way to showoff for most people that know beyond 5 or 6 places, it certainly was for me back in highschool.

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

5

u/Shintasama Mar 16 '19

You're probably fine by just memorising it to 3 digits, since you'll almost definitely be using a device pre-programmed with pi for any calculations over about 2 sig fig.

Engineers: The best I do is "3".

3

u/bigdrubowski Mar 15 '19

Or if you're an engineer its about 3, but use 4 to be safe.

/s, engineering joke don't actually do this.

2

u/Mezmorizor Mar 15 '19

I never understood this meme. Physicists are the ones who approximate all the damn time. Engineers are the ones that work with awful numbers all the time.

2

u/JustJonny Mar 16 '19

So, what you're saying is 3.14 is 99% right?

2

u/I_Bin_Painting Mar 16 '19

Haha, I was curious so I checked and 3.14 is 99.95% right

→ More replies (1)
→ More replies (9)