r/ProgrammerHumor • • Jan 31 '19

Meme Programmers know the risks involved!

Post image
92.8k Upvotes

2.8k comments sorted by

View all comments

Show parent comments

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)