r/badcode • • Apr 21 '23

other language We did coding in physics class...

Post image
1.5k Upvotes

154 comments sorted by

View all comments

Show parent comments

13

u/SuitableDragonfly Apr 21 '23

Every single topic is not ranked on a single scale of difficulty. There are plenty of physicists who have a knowledge of physics far beyond what we could achieve who wouldn't understand a lot of basic programming functions, and vice versa.

18

u/brotatowolf Apr 21 '23

To do basic physics, you need to know what a mathematical function is, and you need to know how to round. That’s enough to understand floor()

-4

u/SuitableDragonfly Apr 22 '23

Floor is not a rounding function. It does something different. I've never heard of floor calculations being useful in physics, but I am not a physicist, either.

6

u/brotatowolf Apr 22 '23

Floor is a special case of rounding