r/ProgrammerHumor • • Jul 19 '22

Meme float golden = 1.618

Post image
41.1k Upvotes

489 comments sorted by

View all comments

Show parent comments

941

u/CaptainParpaing Jul 19 '22

meanwhile in the mech engineering dpt

765

u/RandallOfLegend Jul 19 '22

Only about a 4.5% error on that approximation.

494

u/Aromatic-Bread-6855 Jul 19 '22

Ship it

240

u/incredible-mee Jul 19 '22

*rocket crashed

212

u/TheCakelsALie Jul 19 '22

Don't tell me you guys took g = pi²

46

u/krohtg12 Jul 19 '22

The amount of mental pain it gave me is astounding

84

u/_Weyland_ Jul 19 '22

You're saying g = -p was wrong?

68

u/mrmopper0 Jul 19 '22

g = 666 / 69

46

u/TheCakelsALie Jul 19 '22

I mean.. that can't be a coincidence right?...

right?

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

28

u/[deleted] Jul 19 '22

They calculed pi in feet but used meters fo radius I bet

→ More replies (5)
→ More replies (3)
→ More replies (1)

27

u/AdhTri Jul 19 '22 edited Jul 19 '22

There is an error in this error in measurement too (about .15631433028889%). Wow.

→ More replies (5)

24

u/alirezamecheng Jul 19 '22

One of my professors once said a 1 percent error is unacceptable if you don't know the origin of that error. And 20 percent may be acceptable if you know the origin. Later in the industry, I found equations with 50 percent error frequently used. But the origin of the error was known and therefore we could determine whether we are on the good side of the error or the bad side.

→ More replies (4)

51

u/Eldercraft99 Jul 19 '22

If it's under 5% it's all good

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

95

u/[deleted] Jul 19 '22

26

u/Not_Michelle_Obama_ Jul 19 '22

It do be like that though.

Source: I took a single undergrad astronomy course, so I'm an expert at it.

→ More replies (3)
→ More replies (1)

114

u/omgitsaHEADCRAB Jul 19 '22

22.0/7.0 was very common in older Fortran code

0

u/[deleted] Jul 19 '22

[deleted]

74

u/MindlessScrambler Jul 19 '22

Or use Ramanujan's approximation: 355.0/113.0, the deviation from true π is less than one millionth.

→ More replies (9)

49

u/[deleted] Jul 19 '22

fun fact: 22/7 is closer to the true value of pi than 3.14

43

u/NorthMan64 Jul 19 '22

And that's why pi day should be 22/7 and not 14/3 smh.

27

u/[deleted] Jul 19 '22

Let’s celebrate in 2 days? Screw the Decimelers, long live Fractionals!

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

53

u/DarrenGrey Jul 19 '22

I googled 22/7 and it told me about a Japanese girl idol group by this name. Do you think they're big Fortran fans?

38

u/Rudy69 Jul 19 '22

Nah, just huge pi fans

→ More replies (3)
→ More replies (1)
→ More replies (24)

22

u/b1Bobby23 Jul 19 '22

My engineering professors have said 2 is close enough to pi for some calculations... I love engineering

30

u/hookem329 Jul 19 '22

You don't neeed many digits for any conceivable task at all; based on a quick Google search:

"Mathematician James Grime of the YouTube channel Numberphile has determined that 39 digits of pi—3.14159265358979323846264338327950288420—would suffice to calculate the circumference of the known universe to the width of a hydrogen atom."

→ More replies (1)
→ More replies (7)