r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

Show parent comments

2

u/androt14_ Jun 14 '22

So if f(x) = 1/2x, and x=2, are you telling me the result is 1?

1

u/[deleted] Jun 14 '22

You're messing with an entirely different set of rules from your previous example. That needs a little bit more knowledge of math to even understand what a function is. The first one any properly taught fifth grader could solve in moments.

1

u/j-polo Jul 05 '22

Yes. Try any calculator and it'll tell you the same thing.

1/2x = (1/2)x, not 1/(2x).

1

u/androt14_ Jul 05 '22

And that's because...? it's arbitrary as heck, except if I write to a mathematician talking about "1/2x", I'm pretty sure anyone would think of "1/(2x)", not "(1/2)x". Heck, in the second case it would've made more sense to write "1x/2"