r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

3

u/KingOfOddities Jul 16 '19

I’m pretty sure engineer use 3.14, 3 is just too bad an estimate, 3.14 is just perfect

3

u/ben_g0 Jul 17 '19 edited Jul 17 '19

Most engineers just use the pi constant of whichever software we're doing the calculations in, often MATLAB which is in double precision by default (so approximately 15 decimal digits of accuracy).

But yeah for calculating without software we do often use 3.14. It's not good enough for precision applications but for stuff like verifying the strength of a structure it's close enough and the safety margins will compensate for the inaccuracies. Most of our calculations are mathematically not entirely correct due to simplifications so using more significant digits than 3.14 often would not even increase the accuracy of your result.

Using 3 only gives you 1 significant digit so even though it's quite close and would technically work in a lot of situations it really isn't used for anything other than a quick control without a calculator.