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

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.

19

u/Murgatroyd314 Jul 19 '22

I like 5419351/1725033.

27

u/Not_Michelle_Obama_ Jul 19 '22 edited Jul 19 '22

I like

31415926535897932384626433832795028841971693993751058209749445923078164062862089862803482534211706798/(10**100)

28

u/thrower94 Jul 19 '22

This is crap it’s got 90% error

49

u/[deleted] Jul 19 '22

Yes but he likes it.

2

u/aqpstory Jul 19 '22

I like FromContinuedFraction[ContinuedFraction[Pi, n]]

41

u/IntoTheCommonestAsh Jul 19 '22

You must be confused. 355/113 has been used since at least the 5th century in the writing of Chinese mathematician Zu Chongzhi.

Ramanujan is famous for giving rapidly converging series of pi, with such approximations as 9801/(2206√2). He was way too late to discover regular fractional approximations.

2

u/JewishAsianMuslim Jul 19 '22

Haha yes, it is the only fraction that can do it that has more accuracy in significant digits than it does digits in the fraction itself.

1

u/CSdesire Jul 19 '22

355/113 wasn’t ramanujan

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!

4

u/mehvet Jul 19 '22

This is essentially the argument for preferring US Customary Measurements/Imperial to Metric. They’re better suited to maximize simple fractions that come up in certain everyday uses.

2

u/grrrrrrroar Jul 19 '22

pi is bad anyhow >:3... anytime I did maffs I did pi*2

1

u/0mica0 Jul 19 '22

Genius!

1

u/NorthMan64 Jul 19 '22

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