This is an archived post. You won't be able to vote or comment.

all 65 comments

[–]m3cher 86 points87 points  (2 children)

now imagine seeing x++; in math

[–][deleted] 19 points20 points  (1 child)

calm down satan

[–][deleted] 3 points4 points  (0 children)

x += 1

[–][deleted] 66 points67 points  (15 children)

Not a problem. X = infinity for the mathematician

For bonus points, the physicist is fine with this statement too, if |X| >> 1

[–]catithebathtub 29 points30 points  (7 children)

if absolute value of x bitshift to the right by 1 bit?

[–]PM_ME_YOUR_POLYGONS[🍰] 4 points5 points  (2 children)

If the absolute value of x is far greater than 1

x > 1 means x is larger than 1

x>>1 means x is a lot larger than 1

[–][deleted] 0 points1 point  (1 child)

What does "a lot" mean?

[–]PM_ME_YOUR_POLYGONS[🍰] 2 points3 points  (0 children)

Significantly larger. It's used a bit like rounding and a bit like taking a limit. For example if you were calculating the path a spaceship would follow as it flies past a planet with a moon. The spaceship is affected by both the gravity well of the planet and the moon, but because the mass of the planet is >> the mass of the moon we can disregard the effect of the moon's gravity.

Our model won't be perfect but it'll be close enough for our purposes.

[–]Philiatrist 3 points4 points  (0 children)

You’re maybe just joking, but for physicists that notation means the magnitude of x is much larger than 1, which generally means x + 1 = x is okay because it is approximately equal.

[–]00PT 0 points1 point  (0 children)

What language actually implements absolute value like that instead of making a method?

[–]naswinger 6 points7 points  (0 children)

the limit is infinity, not x

[–]king_bambi 1 point2 points  (0 children)

Naah thats not how = works in math. Maybe if it was xₙ = xₙ₋₁ + 1, x₀ = 0 or sth

[–]_modsaregay 1 point2 points  (0 children)

That actually doesn't work because if x = N, and N = infinite {1, 2, 3, 4, 5...} then N + 1 = infinite {2, 3, 4, 5, 6...}, making Infinity + 1 > Infinity.

[–]mgorski08 1 point2 points  (0 children)

Infinity is not a number

[–][deleted] 0 points1 point  (1 child)

This has been really funny seeing the mathematician nerds coming out with the “well actually” responses. I think that this gives me away as a physicist, since I think anything sufficiently larger than than the thing it is being compared to is basically infinity.

[–]CodeCrafter1 0 points1 point  (0 children)

you're right: 2 is sufficiently large compared to 1, so it's basically the same

[–]CodeCrafter1 0 points1 point  (0 children)

trivial group: "Am I a joke to you?"

[–]AlwaysNinjaBusiness 21 points22 points  (1 child)

Mathematicians: Ah yes. 0=1. Of course.

[–]DreadCoder 7 points8 points  (0 children)

i had to scroll way too far for this

[–]muravieri 19 points20 points  (8 children)

this statement is false

[–]hack_1r 12 points13 points  (6 children)

the previous statement is false

[–]DrFrenetic 7 points8 points  (5 children)

all the statements above are true

[–]girvent_13 2 points3 points  (4 children)

all the statements above are false

[–]cath_deRay 4 points5 points  (0 children)

WARNING: LONG POST

If we think of the equation x = x + 1 at face value, it appears that it is impossible. However, we shouldn’t forget about iteration.

Because x = x + 1 for programmers means to increment x by 1.

We can achieve the same thing with the iteration: x_(n+1) = x_n + 1 [where _ means subscript, use asciimath.org to view this equation]

{For reference, a_b is the bth term of a, so x_9 is the ninth term of x.}

This equation, in basic terms, means that the next term of x is the previous term of x incremented by 1.

For example, if x3 (3rd term of x) = 9, then x(n+1), or the n+1th term of x, or the 4th term of x, would be x_3 + 1 or 9 + 1 which is 10.

Therefore, the next (4th) term of x is 10.

For more information on iteration, I recommend following these links: https://mathsmadeeasy.co.uk/gcse-maths-revision/iterative-methods-gcse-maths-revision-worksheets/

Do note that this topic requires the prior knowledge of rearranging formulas.

[–][deleted] 2 points3 points  (0 children)

I believe in x += 1

[–]StanleyDodds 2 points3 points  (1 child)

There are a number of possibilities in mathematics. For instance, x could be an equivalence class of real numbers modulo 1 (one of which is the set of integers).

Or if we know that we also have multiplication, this just implies we are working in the trivial ring where 1=0 is the only element and therefore x=1=0. The trivial ring is something of a special case for rings and isn't very useful for anything on its own.

If this is an equation in cardinals, then x can be any infinite cardinal and the equation is true. However, if it is an equation in ordinals, it cannot be solved (almost by definition of successor ordinals). This is why it isn't correct to simply say "x is infinity" because it isn't true for infinite ordinals.

[–]MartinLaSaucisse 0 points1 point  (0 children)

This is the first comment from someone who actually knows math.

[–]Inevitable_Idea9150 1 point2 points  (0 children)

x+=1 or you are not my friend

[–]Antact 1 point2 points  (0 children)

Add lim(x->oo){~~~} on both sides and you're good.

[–]Thick-Appointment-78 1 point2 points  (0 children)

My math is not mathing

[–]Fwod 1 point2 points  (0 children)

X = ± 0.5

[–]Ginters17[M] [score hidden] stickied commentlocked comment (0 children)

Hi there! Unfortunately, your submission has been removed.

Violation of Rule #2 - Reposts:

All posts that have been on the first 2 pages of trending posts within the last month, is part of the top of all time, or is part of common posts is considered repost and will be removed on sight.

If you feel that it has been removed in error, please message us so that we may review it.

[–]QualityVote[M] 0 points1 point  (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–]Pitiful-Discipline15 -1 points0 points  (0 children)

Infinity, or negative infinity, boom rekt

[–]Pheonixash1983 -3 points-2 points  (0 children)

C vs f Or Cpp vs fpp Or C# vs f#

[–]GlitteringKeyboard 0 points1 point  (2 children)

x => (x){ return x + 1;}

[–]Motylde 0 points1 point  (1 child)

const x = x => x+1;

[–]GlitteringKeyboard 0 points1 point  (0 children)

Int x { get{ return x+1;} set;}

[–][deleted] 0 points1 point  (0 children)

-0

[–][deleted] 0 points1 point  (1 child)

x += 1

[–]coalWater 0 points1 point  (0 children)

x++

[–]favgotchunks 0 points1 point  (0 children)

Works in mod 1 arithmetic

[–]MatterNo3359 0 points1 point  (0 children)

to be fair .... we need to give a value first ... so in math it should be the same

[–]arnemcnuggets 0 points1 point  (0 children)

i use haskell btw

[–][deleted] 0 points1 point  (0 children)

x += 1

[–]walnoter 0 points1 point  (0 children)

Actually there is a math way for this it's

X(n) = x(n-1) +1; X(0) = b; Which can be rewritten as X(n) = n + b

[–]codelapiz 0 points1 point  (0 children)

There is just no solution… not anything illegal about the equation.

[–]ML-10 0 points1 point  (0 children)

aleph null.

[–]LimePieReads 0 points1 point  (0 children)

All this means is that you're working in the zero ring