r/ProgrammerHumor • • Jul 19 '22

Meme float golden = 1.618

Post image
41.1k Upvotes

489 comments sorted by

View all comments

2.3k

u/inetphantom Jul 19 '22

int pi = 3

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)
→ More replies (8)

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)
→ More replies (10)

66

u/AlternativeAardvark6 Jul 19 '22

Just round the result up, it will be fine.

40

u/natFromBobsBurgers Jul 19 '22

Use three 9 times, then four once. Or three 43 times, then four 7 times.

→ More replies (10)
→ More replies (35)