In many programming languages, this is valid syntax. What this does is it takes the variable y and assigns itself to itself plus two. So if somewhere before this line y is set to 1, then after this line executes, y is set to 3.
Edit: Also read your username and not sure if code related.
Yes, it can be solved. The solution is that 0 = 2, and that y is any element of the field with characteristic 2. There are no solutions in a field with characteristic zero, which is to say any field that contains the rational numbers.
A "strict mathematical concept" is still an idea. What I'm getting at is that it's not a number. You cannot say "Y = infinity" in mathematics. It is simply wrong. You can say "z tends to infinity" or "the limit of rho diverges to infinity", but y = infinity is just flat out wrong and you know it.
you are confusing "Solving" and "simplifying". You can simplify this equation into "false", which is a correct simplifcation. You cannot solve this for y, however, because there is no assignment for y which makes this equation true (given that this equation is identical to false).
The worst part is that in VB "=" can be either assignment or a comparator, so "y + 2 = y" will actually work as-is as long as it is evaluated as a boolean...
If(y + 2 = y) Then
...
End If
will compile, but you will never enter your 'If' block, also
Function AlwaysReturnsFalse(ByVal y As Integer) As Boolean
Return y + 2 = y
End Function
what I gather from the comments is that it is not a traditional equation ,but a software coding equation. so that means that someone with a math degree would not see it as what it is, and the equation is in fact unsolvable algebraically. is this correct? I just want to make sure I understand because I was more interested in the equation than the comment.
This equation can mean different things in different contexts.
If we assume that the symbols 'y' and '2' represent real (or complex) numbers, and that we are being tasked to find a real (or complex) solution, then there is no solution.
There are other types of "algebraic objects" in which the equation can be solved, but in those cases 'y' and '2' would be symbols used to represent different objects than real/complex numbers.
For example, there is an "algebraic system" which exists that behaves very much like you just took the integers, with their normal addition and subtraction, but then let 2=0.
To understand why this might not be a total nonsense idea, think of the unit circle. The unit circle has 360 degrees in it, and going 360 degrees around the circle gets us right back to where we started, as if we went nowhere. So we might be inclined to think of 360 degrees and 0 degrees as being "equal" (or, more precisely, "equivalent").
If we decide to work with elements from this system, then there are multiple solutions to the stated equation. (Some people here have "Z/2Z" written in their comments, and that is a label for the system I am talking about, although what I described above is not a rigorous definition of Z/2Z).
While you guys are trying to solve this, I'd like to point out that it isn't actually an equation. The sides aren't equal. People can't solve it because it's wrong in the first place. It's like saying "90% of people can't solve the equation 3 + y = potato". No shit they can't solve it, its designed to be impossible to solve. What did you expect?
For notational convenience and other reasons, mathematicians sometimes use the so-called "extended reals" which can include infinity, +/-infinty, or a continuum of "directional" complex/projective infinities. This type of notational relaxation also manifests itself when a student first learns about limits.
It should be noted that the extended reals is typically non-standard and without any context it is typically not assumed, so your statement is in general correct.
Finally, there are other structures in which such an equation can hold (for example, mod 2) that doesn't even deal with infinities.
I still don't believe that makes the equation equivalent. Infinity + 2 does not equal infinity, it equals infinity plus 2. I understand where you are coming from, but I dont think the rule you are thinking of applies in Algebra, more so in Calculus based math. Im not a math graduate though...
Conventional math doesn't always work the way it should with infinity.
For example, imagine an area with width 0 and height infinity. What would you say if I said the area of that shape was 1? Well, that's pretty much how the dirac delta formula works. It's because infinity isn't a number, but a concept.
But, I'm not a math graduate either, just an engineering major.
The concept of infinity is an odd creature, such that it does not equal itself, multiplying it by 0 gives you 1, dividing it by itself is more dangerous than dividing by zero, and modifying it with any math operator simply amounts to infinity again.
Infinity plus 2 equals infinity, because infinity cannot be treated as a traditional variable. It is a tough concept to wrap your head around.
Infinity is not the same as does not exist. It doesn't exist in standard algebra because it isn't meaningful, just like dividing by 0 isn't meaningful.
While if you take the limit as Y goes to infinity, then Y/(Y+2) does go to 1, it still does not make the equation valid. See, there's more than one infinity. The Y+2 infinity is a slightly larger infinity than the Y infinity.
In terms of cardinality y must clearly be infinite and can be any infinite cardinality since for any infinite cardinality m ;m=n+m for any integer n and in fact for n= cardinality of the natural numbers.
if we are talking about plus as in an additive commutative group structures then 2=0 and 2Z must annihilate the group taken as a Z-module. (if it were the additive group of a field this means char 2)
Uhm well what that means is that the equation is true exactly when 8 = 0 (or just 2 = 0), which doesn't tends to happen so often for real numbers... There's nothing wrong with the derivation per se, the 4chan poster just doesn't completely understands what he is doing
This equation implies that y has two different values, which is possible if you use sub notation. For example y1 = 1, y2 = 3 --> y1 + 2 = y2, i.e. 1 + 2 = 3
The screenshot is funny. But your posts title could be better. Instead of your personal response "i'm impressed" maybe something that makes a redditor interested. For example a part of the content: "now rub the equation vigorously" It does not give away the joke, and it sounds like something you want to know what it is about.
Well let's be honest here. People in r/funny don't go pick and choose what links to click. The Click everything because they are bored and they want to have an inner giggle.
The problem is that if you're using normal rational math then Y can't equal Y+2 but if it can then the math I used is valid. If this math isn't valid then Y just can't equal Y+2, but I was under the assumption that this was a valid equation.
Or more generally, y is just "the generic constant". You'd be surprised how often it's OK to completely ignore constants in math (when asymptotics are involved, of course).
When people do that constant ignoring thing where c+2 = c, they're really just being lazy notation wise, and strictly speaking incorrect - but most everyone should understand what's going on. When you have f(x) + c + 2 for example, you must formally say "let another constant d = c + 2" and substitute so it becomes f(x) + d. The shorthand just is lazy and implicitly rebinds the c variable.
I'm not sure because I've never seen this, but I think a more correct way to write a generic constant would be to write "O(1)", which is semi-correct to say "O(1) = O(1) + 2" but not really because O() is a set of functions so things get weird.
Well yeah you're right. To be perfectly pedantic one would either have to explicitly keep track of all constants, or write something along the lines of "there exist constants c_1,c_2,..., independent of x, such that STUFF + c_1 <= OTHER STUFF + c_2 <= ..." (where I've used an upper bound derivation example).
212
u/Motorpenis Jun 27 '12
y = y + 2;
Is now valid.
84
u/buster2Xk Jun 27 '12
Of course 90% can't solve it. There's no solution, it cannot be solved. That doesn't mean the 90% are wrong.
123
u/hexprocess Jun 27 '12
Another victim of the Yahoo toolbar...
21
u/biga29 Jun 27 '12
Soblem prolved.
8
u/[deleted] Jun 27 '12
http://www.wolframalpha.com/input/?i=y+%2B+2+%3D+y
19
u/123comeonBaby Jun 27 '12
Let's pretend the answer is 7 and call it a day.
62
u/[deleted] Jun 27 '12 edited Jun 27 '12
So you've taken the post from r/4chan, and posted it again 2 hours later on r/funny with the same title. Nice karma whoring, brah.
4
u/wtf_idontknow Jun 27 '12
it's not that hard if you use modulo, so y є {0,1} mod 2 solves....
8
u/[deleted] Jun 27 '12
I think the joke is that the 10% of graduates who can "solve" it can't actually solve simple equations.
(just throwing this out there since so many people are making their own guesses)
3
u/Sikka Jun 27 '12
Is, is that Yahoo Search bar..?
5
u/moondance Jun 27 '12
simple. y = y + 2 in the Z/2Z additive group for both 1 and 2.
2
u/Rabidpotatoes Jun 27 '12
what I gather from the comments is that it is not a traditional equation ,but a software coding equation. so that means that someone with a math degree would not see it as what it is, and the equation is in fact unsolvable algebraically. is this correct? I just want to make sure I understand because I was more interested in the equation than the comment.
2
u/EvaCarlisle Jun 27 '12
So was ozzymustaine when he posted the exact same thing with the exact same title in /r/4chan two hours before you.
2
u/freebirdcrowe Jun 27 '12
hardcore repost
2
u/[deleted] Jun 27 '12
Yahoo Toolbar....
2
u/[deleted] Jun 27 '12
While you guys are trying to solve this, I'd like to point out that it isn't actually an equation. The sides aren't equal. People can't solve it because it's wrong in the first place. It's like saying "90% of people can't solve the equation 3 + y = potato". No shit they can't solve it, its designed to be impossible to solve. What did you expect?
2
u/kenshin80081itz Jun 27 '12
let Y= x mod 2 then for any value of Y , Y +2 is the same.
2
u/RoundersBat Jun 27 '12
I rubbed it vigorously like it said, and the answer hit me right between the eyes.
2
u/[deleted] Jun 28 '12
Not bad. I suspect the 10% that can solve this are coincidentally the bottom 10% of the class.
3
u/aakaakaak Jun 27 '12
Dude, WTF? Seriously? At least wait until the other repost is off the front page.
http://i.imgur.com/NmMEH.jpg
7
u/SrslyNotAHipsterTtly Jun 27 '12
Simple. Y=infinity.
1
u/gH0o5T Jun 27 '12
Why by 4?
1
u/SpeaksInJive Jun 27 '12
Mayne dat nigga all dun fucked up his ordah on da mat. Gotta subtract dat ay befo' you do anythang wit dat fo(Y).
1
u/Pandaval9 Jun 27 '12
In terms of cardinality y must clearly be infinite and can be any infinite cardinality since for any infinite cardinality m ;m=n+m for any integer n and in fact for n= cardinality of the natural numbers.
if we are talking about plus as in an additive commutative group structures then 2=0 and 2Z must annihilate the group taken as a Z-module. (if it were the additive group of a field this means char 2)
1
u/Yabadabadude Jun 27 '12
You could just say that Y isn't a variable to be found, but rather the expression is telling you that you are now working in base 2.
1
u/FlorisJ Jun 27 '12
At least put in the title: (X-post from /r/4chan), or something like that.
1
u/ghost_victim Jun 27 '12
I hate when I read down the comments of a post for like 5 minutes and then realize that I'm bored to tears.
1
u/SLAP0 Jun 27 '12
Only 90%? I thought more about 100%.
1
u/shroomtat Jun 27 '12
sweet search bar bro
1
u/kt_ginger_dftba Jun 27 '12
no sol'n. y cannot equal y+2. fuck you and your humor; EDJOOCAYSHUN!
1
u/poizan42 Jun 27 '12
Uhm well what that means is that the equation is true exactly when 8 = 0 (or just 2 = 0), which doesn't tends to happen so often for real numbers... There's nothing wrong with the derivation per se, the 4chan poster just doesn't completely understands what he is doing
1
u/FattyMcPatty Jun 27 '12
Came in to see math humor,found giant coding conversation. Never felt so confused
1
u/Chinchillasrule Jun 27 '12
Yet again a prime reason why i stayes the fuck away from mathematics in university.
1
u/Macadamian234 Jun 27 '12
That last part was good.
1
u/chittozo_gato Jun 27 '12
I see virgins, virgins everywhere
1
u/commandakeen Jun 27 '12
Is that a screenshot from a picture posted to the 4chan subreddit, taken from 4chan?
1
u/superparticular Jun 27 '12
This equation implies that y has two different values, which is possible if you use sub notation. For example y1 = 1, y2 = 3 --> y1 + 2 = y2, i.e. 1 + 2 = 3
1
u/ailee43 Jun 27 '12
Its actually very solvable.
The answer is Y = 0(mod 2)
1
u/Durek Jun 28 '12 edited Jun 28 '12
y = y + 2
Subtract y from both sides
0 = 2
Multiply both sides by sin45cos45 (in degrees)
0 = 2sin45cos45
Substitute using double-angle identity
0 = sin90
Evaluate
0 = 1
Repeat from step 2
0 = 1sin45cos45
0 = 0.5sin90
0 = 0.5
Repeat this infinity times and you'll get
0 = 0
Therefore, y + 2 = y because A = 0, where A is any real number.
1
u/indiekid22 Jun 27 '12
Oh...my answer was Infiniti...but a penis works too...
-9
u/Pestilence86 Jun 27 '12
The screenshot is funny. But your posts title could be better. Instead of your personal response "i'm impressed" maybe something that makes a redditor interested. For example a part of the content: "now rub the equation vigorously" It does not give away the joke, and it sounds like something you want to know what it is about.
0
u/[deleted] Jun 27 '12
7(5y + x) - (4x - 1) = cock
0
u/[deleted] Jun 27 '12
You'd still have to divide by four to make-up for multiplying it previously. So it'd be more like a fourth of the size of that.
-6
u/Shenra Jun 27 '12
Why did he multiple both sides by 4?
-7
u/Rock_Hard_Stone Jun 27 '12 edited Jun 27 '12
Y+2=Y Square it: (Y+2)2 =(Y)2
Y2 +2Y+2Y+4=Y2 Put the matching whatevers together: Y2 +4Y+4 = Y2 Subtract Y2 from both sides: (Y2 +4Y+4)-Y2 = (Y2 ) -Y2
4Y+4=0 (4Y+4)-4=(0)-4 Subtract 4 from each side: 4Y=-4 (4Y)/4=(-4)/4 Divide by 4: Y=-1 tl;dr: Y equals negative one.
0
u/[deleted] Jun 27 '12
[deleted] — view deleted comment
0
u/[deleted] Jun 27 '12
[deleted] — view deleted comment
0
u/[deleted] Jun 27 '12
[deleted] — view deleted comment