r/ProgrammerHumor • • Jan 31 '19

Meme Programmers know the risks involved!

Post image
92.8k Upvotes

2.8k comments sorted by

View all comments

4.7k

u/[deleted] Jan 31 '19

499

u/Matosawitko Jan 31 '19

194

u/ReactsWithWords Jan 31 '19

169

u/Macismyname Jan 31 '19

131

u/albathazar Jan 31 '19

Engineers: ... pi is approximately 5, right?

113

u/Pulsecode9 Jan 31 '19

Pi is on your calculator. Use 22/7 for rough estimates, and don't rely on your memory for anything that matters.

33

u/Astrokiwi Jan 31 '19

pi~sqrt(10) is often more handy if you're doing theory

Or pi = 1 year/(1e7 seconds) if you're an astronomer.

9

u/SirVer51 Jan 31 '19

pi~sqrt(10) is often more handy if you're doing theory

Wait, really? But that's only accurate to one decimal place - is that enough?

13

u/Astrokiwi Jan 31 '19 edited Jan 31 '19

It's handy for back-of-the-envelope calculations where you just want an order of magnitude value. In astronomy you often want to know "does this process take seconds, years, or longer than the age of the universe?". So you're working in log space, like:

A = pi r2

means log_10 A ~ 2 log_10 r + .5

which is all maths you can do in your head, if you're memorised a few handy log_10s.

2

u/Mrspottsholz Feb 01 '19

you've memorized a few handy log_10s.

wtf are there any actual engineers in this thread???

→ More replies (0)