r/funny • • Jun 27 '12

I'm impressed

http://imgur.com/Dcheu
920 Upvotes

272 comments sorted by

212

u/Motorpenis Jun 27 '12

y = y + 2;

Is now valid.

56

u/catd0g Jun 27 '12

Is this an iterative coding joke or am I missing something?

95

u/Motorpenis Jun 27 '12
if ( iterativeCodingJoke ) {
    console.log ( "Yes" );
} else {
    alert ( "Missing something" );
}

And the console outputs...

Yes

97

u/buster2Xk Jun 27 '12

tl;dr: code joke about code joke

17

u/[deleted] Jun 27 '12

Oh yeah well!

print ("Yes")

14

u/okiclick Jun 27 '12

Watch your syntax, bro.

→ More replies (9)

3

u/hejner Jun 27 '12

ReferenceError: iterativeCodingJoke is not defined

→ More replies (2)

8

u/Lampjaw Jun 27 '12

For some reason using brackets for items that use only the first line under ifs bother me.

21

u/DecentCriminal Jun 27 '12

Ha, you'd hate my code. I do this but I also always have an individual line for each brace. So it would be:

if ( iterativeCodingJoke ) 
{
    console.log ( "Yes" );
} 
else 
{
    alert ( "Missing something" );
}        
→ More replies (22)
→ More replies (9)

10

u/buster2Xk Jun 27 '12

It is an iterative coding joke. When written that way, y is simply a variable to which 2 is added in each iteration.

→ More replies (24)

13

u/DoWhile Jun 27 '12

Keep going...

7

u/Motorpenis Jun 27 '12 edited Jun 27 '12

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.

→ More replies (1)
→ More replies (1)
→ More replies (10)

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.

50

u/SeraphicNinja Jun 27 '12

Then you wonder what the other 10% is doing.

My take? "The remaining 10% came up with a way to avoid the issue entirely."

32

u/[deleted] Jun 27 '12

If 100% can't solve it, it's correct to say 90% can't solve it either. They didn't say there is anyone that can ;)

7

u/CrackedPepper86 Jun 27 '12

9/10 dentists say this is the correct answer.

15

u/PhantomSwagger Jun 27 '12

*9/10 dentists say this is the correct answer, and so does the tenth.

4

u/goboatmen Jun 27 '12

Technically correct; the best kind of correct

4

u/king_of_the_universe Jun 27 '12

Well, they see a lone y on both sides and think "Why not!", and it's gone.

→ More replies (1)

4

u/exe_orb Jun 27 '12

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.

→ More replies (2)

11

u/ZapActions-dower Jun 27 '12

Y = infinity. Or negative infinity.

Problem solved, bitches.

6

u/Nishido Jun 27 '12

You can't do math with infinity the way your doing math with infinity. It's an idea, not a number.

8

u/oskar_s Jun 27 '12 edited Jun 27 '12

You kinda can, actually. (EDIT: though he's still wrong, y and y+2 represent different ordinals, even if they're larger than infinity).

And infinity is not an "idea", it's a very strict mathematical concept.

7

u/Nishido Jun 27 '12

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.

→ More replies (5)
→ More replies (3)
→ More replies (6)

2

u/somerandomguy02 Jun 27 '12

It's not that it can't be solved, its that it is an incorrect statement to begin with.

→ More replies (1)

-4

u/[deleted] Jun 27 '12

The answer is false. It is not 'no solution' aka null. False ≠ null.

10

u/Tetha Jun 27 '12

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).

8

u/buster2Xk Jun 27 '12

y still cannot be solved for.

4

u/[deleted] Jun 27 '12 edited Jun 27 '12

y = ∅ ?

→ More replies (1)
→ More replies (1)

123

u/hexprocess Jun 27 '12

Another victim of the Yahoo toolbar...

2

u/BrianAnim Jun 27 '12

Glad someone else posted it.

21

u/biga29 Jun 27 '12

7

u/[deleted] Jun 27 '12

Or more specifically instead of y + 2 = y it would be better if it was written like y + 2 == y.

The answer is false.

Simple.

1

u/centurijon Jun 27 '12

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

will ..uh... always return false.

4

u/[deleted] Jun 27 '12

VB is not a real language.

→ More replies (2)

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.

14

u/[deleted] Jun 27 '12

He screenshotted a screenshot.

11

u/lmrm7 Jun 27 '12

At the very least (x-post from /r/4chan) would have sufficed.

4

u/NIQ702 Jun 27 '12

I think you just solved the equation.

4

u/wtf_idontknow Jun 27 '12

it's not that hard if you use modulo, so y є {0,1} mod 2 solves....

2

u/sanias Jun 27 '12

But it gets hard when you rub it vigorously.

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)

2

u/[deleted] Jun 28 '12

You're not the only one. That is how I read it.

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.

1

u/Acduck Jun 27 '12

math hero

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.

1

u/Manbitesdonut Jun 27 '12

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).

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?

1

u/The_Geb Jun 27 '12

Y= Potato - 3= Pot, so Y=Pot and you are high.

Gee, That wasn't hard to solve.

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.

47

u/DiegoMoBa Jun 27 '12

You can't use infinity as a number, this doesn't have a solution

10

u/DoWhile Jun 27 '12

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.

2

u/[deleted] Jun 27 '12

If you relax your notation these ways, the regular tricks of equational reasoning (adding the same number to both sides etc.) don't hold.

-4

u/Shadefox Jun 27 '12

I don't think Y can be two numbers at once either.

7

u/buster2Xk Jun 27 '12

Which is why it has no solution.

2

u/[deleted] Jun 27 '12

y2 + 2y - 1 = 0

→ More replies (3)

8

u/sappapp Jun 27 '12

Eh, I don't agree. Explain.

-21

u/SrslyNotAHipsterTtly Jun 27 '12

Well, infinity is unknown, so anything higher than infinity is still unknown.

-4

u/sappapp Jun 27 '12

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...

23

u/Shenra Jun 27 '12

It does not equal infinity. There is no solution.

6

u/[deleted] Jun 27 '12

If you rewrite the problem to replace the y with a limit you can use infinity.

(Limit as y approaches x) + 2 = (Limit as y approaches x)

Solve for x


This problem is essentially identical but I'm pretty sure infinity is an acceptable answer here.

→ More replies (5)

10

u/TheExtremistModerate Jun 27 '12

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.

5

u/ahabswhale Jun 27 '12

The Dirac delta is not well defined outside of integral calculus, so be careful with that statement. Strictly speaking it's not a real function.

→ More replies (1)

3

u/RossLH Jun 27 '12

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.

→ More replies (3)

6

u/BlondeJesus Jun 27 '12

The system is inconsistent. Therefore there is no solution.

1

u/Magnesus Jun 27 '12

From what I remember about math you say "there is no such y" in such cases.

1

u/[deleted] Jun 27 '12

This is wrong.

The statement is a boolean. The answer is 0 or false.

3

u/[deleted] Jun 27 '12

The task is to solve for y. You don't get points on the math test if you answer

y2 + 2y - 1 = 0

with

true

and definitively not if you answer 1. Silly programmer.

1

u/tigerbottoms Jun 27 '12

that's what i was thinking...

1

u/BlueShamen Jun 27 '12

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.

1

u/SrslyNotAHipsterTtly Jun 27 '12

Did I just cause a controversial paradox?

0

u/CobaltSmith Jun 27 '12

For the love of god, thank you............. I was apparently, temporarily retarded...... SHUT UP!!! It can happen.

2

u/SrslyNotAHipsterTtly Jun 27 '12

I know, you don't need to smosh me.

1

u/TheExtremistModerate Jun 27 '12 edited Jun 27 '12

Could it also be negative infinity?

0

u/Fearlessleader85 Jun 27 '12

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.

2

u/cosmo7 Jun 27 '12

The Y+2 infinity is a slightly larger infinity than the Y infinity.

That's like saying that two parallel lines are slightly more parallel than another pair of parallel lines.

→ More replies (1)

1

u/exscape Jun 27 '12

Wouldn't they have the same cardinality?

→ More replies (1)

1

u/gH0o5T Jun 27 '12

Why by 4?

2

u/random123456789 Jun 27 '12

Because he needed to get 8.

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.

6

u/hexprocess Jun 27 '12

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.

11

u/[deleted] Jun 27 '12

"DON'T PUT THE FREAKING PUNCHLINE IN THE FREAKING TITLE" -Submit page.

→ More replies (1)

1

u/[deleted] Jun 27 '12

Clearly a veteran redditor. That is impressive, no we can say "I'm impressed" and mean it.

0

u/[deleted] Jun 27 '12

[deleted] — view deleted comment

1

u/willb483 Jun 27 '12

I wish you wouldn't repost an hour after the original was on the front page with the same title.

1

u/[deleted] Jun 27 '12

Or you could use some tired fucking overused meme quote like "seems legit" or "...doing it wrong" or "level 9000."

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?

4

u/mkizys Jun 27 '12

i thought the same thing, couldve just subtracted y from both sides, but i guess the 8 is perfect for the joke, 2 doesnt look like balls

-6

u/Shenra Jun 27 '12

Yea but he could have just used (y + 8 = y)........

7

u/AndThenThereWasMeep Jun 27 '12

I don't think the guy solving the equation made the original question.

3

u/pyvlad Jun 27 '12

Oh come on, be easy on him. He's obviously not a math graduate.

-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

-3

u/Rock_Hard_Stone Jun 27 '12

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.

3

u/Motorpenis Jun 27 '12

But if y = -1, the equation still does not hold. -1 + 2 ≠ -1.

0

u/[deleted] Jun 27 '12

[deleted] — view deleted comment

11

u/[deleted] Jun 27 '12 edited Jun 27 '12

Hah, best answer.

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).

3

u/fdtm Jun 27 '12

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.

1

u/[deleted] Jun 27 '12

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).

0

u/[deleted] Jun 27 '12

[deleted] — view deleted comment

3

u/[deleted] Jun 27 '12

Did you take high school calculus?

0

u/[deleted] Jun 27 '12

[deleted] — view deleted comment

1

u/Ran4 Jun 28 '12

You should've realized that you can do both. Planning, biatch.

1

u/Peoples_Bropublic Jun 27 '12

Your problem, not theirs.

0

u/[deleted] Jun 27 '12

[deleted] — view deleted comment

-2

u/[deleted] Jun 27 '12

It isn't impossible or no solution. The answer is false.

2 + 2 = 5 is false too.

5

u/[deleted] Jun 27 '12

No, the task is to solve for the variable. The answer isn't false, the answer is that the solution set is empty. You're thinking like a programmer.

0

u/[deleted] Jun 27 '12

[deleted] — view deleted comment

2

u/dd_123 Jun 27 '12

Why do you think something has to equal zero to "complete" the equation?

-4

u/Xeonit Jun 27 '12 edited Jun 27 '12

The word complete isnt really necessary, however, an equation is verified when using a number you get 0=0. The number its of course a solution.

For example:

X+1=0 its verified only for x=-1, meaning that it has a solution and its "possible".

If I use x=2 I will have 2-1=0 -> 1=0. The number used does not solve/verify our equation, because 1=/=0.

So, 4=5 has no solutions, because we would have 0=1.

Edit:why on earth are you downvoting this?

4

u/dd_123 Jun 27 '12

an equation is verified when using a number you get 0=0

That's what I'm getting at. This is simply incorrect. Both sides of an equation need to be balanced, but they don't need to be equal to zero.

→ More replies (14)

0

u/[deleted] Jun 27 '12

[deleted] — view deleted comment

5

u/alexxxor Jun 27 '12

well shit. if you squint, you'll find that it's actually from 4chan. let the repost circlejerk begin!

2

u/IMasturbateToMyself Jun 27 '12

Ah... I remember my first 1000th comment karma.

inb4 andrewsmith1986 shows up and say "Ah... I remember my first 100k karma."

3

u/DOWNVOTES_SYNDROME Jun 27 '12

Back to back on my fucking front page. Even the title was stolen and reposted. It was up for one fucking hour before OP stole it

1

u/furbiesandbeans Jun 27 '12

Not everyone is subscribed to that

-2

u/croock3 Jun 27 '12

This needs more upvotes ಠ_ಠ