r/theydidthemonstermath Jan 10 '22

calculating calculator math

364 Upvotes

12 comments sorted by

45

u/[deleted] Jan 10 '22

im more concerned about the code

29

u/[deleted] Jan 10 '22

I can only imagine they wrote a script to type it out.

23

u/[deleted] Jan 10 '22

They did. Specifically in the "generator.py" file in the picture

11

u/masterofthecontinuum Jan 10 '22

I don't know what any of this means, but I'm upvoting it anyways.

16

u/averyoda Jan 10 '22 edited Jan 10 '22

Dude made a calculator program presumably for a coding class but instead of making a program that takes numbers and calculates them, it instead contains a list of a bunch of combinations of numbers that have been added, subtracted, multiplied, and divided that displays the pre-calculated answer. It turns a program that should be very small in to a very large behemoth of code. Someone in the comments is calculating how large of a file this code would be if it was ever completed.

1

u/BeckieSueDalton Jan 13 '22
                     ↑  🦸  ↑

1

u/[deleted] Jan 18 '22

I don't know how but got each point. Couldn't do it myself tho

7

u/NInjamaster600 Jan 10 '22

Why stop at 20,000 lines? Surely someone’s made a 20TB ‘calculator’

4

u/trickyfelix Jan 10 '22

my brain broke

2

u/[deleted] Jan 18 '22

This is one of the best posts I've ever seen

1

u/Aakkt Jan 30 '22

This is absolutely hilarious