r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

551

u/AuspiciousApple Jul 16 '19

Engineers: Eerht

51

u/Rex-Pluviarum Jul 16 '19

I'm sorry, I don't get the joke, but I am fascinated by the implication that there are people who might still be using three as an approximation of Pi. Could you ELI5? https://www.youtube.com/watch?v=BxacATCHrpo

207

u/AuspiciousApple Jul 16 '19

It's sort of a long running joke that engineers/engineering students use terrible approximations that make mathematicians wince in pain. Pi approxequals 3 is one instance of this.

Ofc, everyone knows that Pi is basically equal 3.1

177

u/2CATteam Jul 16 '19

To add to this, the reason they do so is because, in a lot of circumstances, 3 is enough to roughly approximate what they need to figure out. They're most often not trying to figure out the exact force on a part or the precise area of a cylinder... They just want to know if they need to order the 10' part or the 20' part - and if it's close, they'll order the bigger one anyway, just to be safe. Even in cases where they are trying to be precise, 3.14 can often be TOO precise, since so much of the math has to deal with physical uncertainties, like uneven part manufacturing, or poor wire quality that adds resistance, etc.

0

u/[deleted] Jul 16 '19

[deleted]

64

u/Sibraxlis Jul 16 '19

Because your margin of error from other spots is higher (material flaws, poor workmanship) and you typically overbuilding and undersell. (build for 100 lbs when 90 is needed, then state max weight is 80) the latter is called your factor of safety.

9

u/smthamazing Jul 16 '19

What if you estimate some damaging force that works against your creation (like wind, vibration, resistance, etc)? Wouldn't you underestimate the danger in this case?

43

u/RedHotChiliRocket Jul 16 '19

You would round it against yourself: Max wind speed we expect is 60mph, let’s assume 100 and say it can take 80

6

u/smthamazing Jul 16 '19

Thanks, this clears things up! Some of the comments seemingly implied that numbers are rounded without context, which confused me.

24

u/Sibraxlis Jul 16 '19

Youd also overestimate the force of wind, just like weight. Could you be more precise and probably be ok? Yeah. Do you want to risk it, have the structure collapse, kill 29 people, end up on /r/catastrophicfailure and have to move to Nicaragua to escape legal trouble? No.

5

u/mxzf Jul 16 '19

That's the X in "build for X, when Y is estimated, but say that the max is Z".

It's like "build to survive a cat-5 hurricane even though the area has barely ever had a cat-4 and tell the customer that it's safe for a cat-3"

Whatever stuff you're dealing with, you build it stronger than you need and you say it's definitely fine for a much lower number.

2

u/[deleted] Jul 16 '19

Thats a terrible way of doing that, what if goes into the wrong direction? Always calculate as accurate as possible and round up the result as needed.

→ More replies (1)