That's right. I can prove it. I really can. I will. You can't prove that it's not. Just try it. I can prove that it is! COME ON!!!!!
Printable View
That's right. I can prove it. I really can. I will. You can't prove that it's not. Just try it. I can prove that it is! COME ON!!!!!
how?
[insert heavy, heavy sigh, here]
:shakehead2:
Then please do
floating point to integer casting
2 + 2 = 5, for sufficiently large values of 2
2.4 (which is rounded down to 2)
+
2.4 (which is rounded down to 2)
=
4.8 (which is rounded up to 5)
2+2=6 dah....
If you casted those to ints beforehand, it wouldn't work?Quote:
2.4 (which is rounded down to 2)
+
2.4 (which is rounded down to 2)[/b]
http://www.snoopy.force9.co.uk/rounding.jpgCode:#include <iostream>
#include <cmath>
int add(float* a, float* b)
{
****int c = ceil(*a + *b);
*****a = (int)*a;
*****b = (int)*b;
****return c;
}
int main()
{
****float a = 2.4;
****float b = 2.4;
****
****int c = add(&a, &b);
****
****std::cout << "a + b = c" << "\n";
****std::cout << a << " + " << b << " = " << c << "\n";
****
****return 0;
}
Already knew that
Quote:
[insert heavy, heavy sigh, here]
:shakehead2:
[/b]
I concur
I get it though ;)
OK...what's so special about saying that 2.4 + 2.4 rounded up to the nearest whole number is 5 (surprise)?Code:int add(float* a, float* b)
{
****int c = ceil(*a + *b);
*****a = (int)*a;
*****b = (int)*b;
****return c;
}
Yes, when you cast them to integers afterwards, they become 2, because they are rounded down, but that's a loss of data - as your compiler probably says - and consequently not the same value. So when you later print the sum:
You're printing out a sum different from the one add() actually carried out, i.e. a and b have changed values. I don't really get it. I suppose on dodgy calculators or something it might be a bit cooler.Code:std::cout << a << " + " << b << " = " << c << "\n";
I think I just killed the coolness and made myself look like a pretentious bastard. Hey, what's new.
Your using floats. Try turning 2 into a float in any language and you'll get 2.0
2.0 + 2.0 = 4.0
...where is the five?
it's a simple example
and so, the errors blindingly obvious
in a bigger program, it may be over looked
imagine a big program......that calculates wages......your wages....... :bigteeth:
lol
<strike>No you won't.</strike> I read that wrong. Yes you will.Quote:
Try turning 2 into a float in any language and you'll get 2.0[/b]
Yeah, but you'd be the world's worst typecaster. C-style casts in themselves are a bit dodgy, and you'd be somehow kicking the compiler in the face to stop it from warning you.Quote:
in a bigger program, it may be over looked[/b]
On the other hand, if you mean my wages are going to go up because of some rounding errors, I'm all for it. Viva la float!Quote:
imagine a big program......that calculates wages......your wages.......[/b]
I object to the bbcode putting <?php on the box header
who do you think I am !!!
HA!
I'll explain it tomorrow. You can book it. It's a done deal. Tomorrow!
Only if he doesn't have a really good excuse
This topic reminds me of the book ' 1984' (great book).
Also, only the pope can prove 2+2=5.
Once again, Neruo has something anti-Pope or Christian to say.
And sure, 2 + 2 = 5 if they are both 2.4.
Why is this topic still going on? What's not to get?
Yes. But see, you've just done what I can do with text, except with more work. You've haven't actually "made" 2 + 2 = 5 (which is impossible if we are allowing the 2's to represent two units and the 5 to represent five units). You've basically just coded something which will display a "picture" showing 2 + 2 = 5.
Ta da:
2 + 2 = 5
Behold the magic of the characters " ". "2", "5", "+", and "=".
In real life, it doesn't work
can you take the whole number 2, multiply it by itself, and get the whole number 5?
Hey, Universal! Keeper asked you a straightforward question that calls for a straightforward answer! What do you have to say to defend your position?!?!?
Probably something along the lines of "Eat Me" but we'll wait and see :bigteeth:
I notice that after 2 pages of conversation, Universal has still not given his theory, nor confirmed the 2.4 theory...
Uh. I think the point was (at least, I hope it was) that this was satire of most religious topics.
Duhhhhh...i thought
2 + 2 = 4!!
(thought i would throw that in there since no one wanted to take the "idiot in need of educating approach" that i'm sure Universal would have like to have schooled....)
I know. It worries me too.Quote:
Sadly, I don't think many people got it.[/b]
if they didnt get that, then they would have asked for the thread to be moved. so yes, your forum people got 'it'
Everyone, quit being so disrespectful! You're forgetting just how relative reality is. 2+2 may equal 4 in some people's reality, but if it equals 5 in yours, then we should ignore limiting factors like reason and just have respect for that belief.
i agree, let me finish with a quote from my hero Supernintendo Chalmers:
"A PRAYER? A prayer in a public school?
Prayers have no place within these walls just like facts have no place in organized religion!!"
Nothing is transcendental when it comes to math, except for perhaps pi. And e.
i like 8
mmmm....pie.....
I'm going to know make a pie in the shape of pi. One of these days I certainly shall.
Yeah everyone (including me) did got carried away a bit. I doubt anyone Really would take it serious, if only they thought about what they hell they are talking about.
You've jumped the gun there, son
First, you should have picked some small, insignificant sentence from your “opponents” post, that in the whole grand scheme of things, doesn’t matter one iota
Blast that sentence to smithereens
Then claim yourself the winner of the whole argument
Then, and only then
Can you permanently “forget” what the bigger issue is
Yeh that little Scamp!
Gotta be one of my fav. Simpson moments :)
Yeah...let's keep this topic going...
2 + 2 = 5 is false because 3 + 3 = 8
There is indeed a proof out there that seems to prove that 2 + 2 = 5, and it is not about rounding. Whenever anything is rounded you need to accept a degree of error within your answer, in this case that degree of error is 1.
I'll admit that I didn't see the satire at first (though if I had gotten here through the forum, instead of a wayward search, I'd like to think that I would have gotten it).
But, I started this post with the intent of showing you how its done... and though I see the futility, I plan to follow through. The said proof goes like this:
two variables are set equal
X = Y
Add X to both sides
X + X = Y + X
Simplify
2X = X + Y
subtract 2Y from both sides
2X - 2Y = X + Y - 2Y
simplify
2X-2Y = X - Y
Factor
2(X - Y) = 1(X - Y)
Devide both sides by (X - Y)
2 = 1
Add 1 to both sides
3 = 2
Add 2 to both sides
5 = 2 + 2
Another proof exists, my calculus teacher showed it to us once, but after 2 years of calculus I still am not confident enough to repeat it and support it (nor do I remember it). It, like this one, has an error. Incase you didn't catch it, (X - Y) = 0, which we divided by. That's a math no-no. As we divide by numbers aproaching zero the answers get increasingly huge, so really we just proved that:
<span style="font-family:Symbol">¥ + 1 = ¥
Which is true.
Sir, if you are going to use math in your satire, make it good math.
</span>
I've seen a much simpler "proof" of 2 = 1, but I think it most likely revolves around the same idea. (I feel sad when people actually believe it, though).
Also your elipson (or whatever that symbol was meant to be) appears as the Yen symbol. I like the Yen symbol, though, so it's okay.
Huh? If I were using satire, wouldn't good math make my point non-satirical? "I can prove that 2 + 2 = 4! Give me a few years." How would that parallel the points being satirized, if I were into that sort of thing? It WOULD because 2 + 2 is NOT 4!!!
I said earlier I will give my explanation by the end of 2014. It might be more like 2019. I'm going to bed. My foot hurts. I have exams. I am busy with work. I am stranded on an island. I spend half of my time in temple and mosque. I have mad cow disease. My grandchildren are staying with me. I'm grounded. My computer doesn't work. I am in a South Pole jail.
Yeah, I had to jump through some hoops to get it to display the infinity symbol, but I guess I ruined compatibility by doing so, still... works for my computer. And in my head that's all that matters.Quote:
Also your elipson (or whatever that symbol was meant to be) appears as the Yen symbol. I like the Yen symbol, though, so it's okay.[/b]
Grr, you raise a good point. My eagerness to demonstrate math prowess makes me a dumbass, how's that for irony...Quote:
How would that parallel the points being satirized, if I were into that sort of thing?[/b]
I see two apples.
I see two more apples.
I see four apples.
...
Math is weird, żno?
No, thats a common mistake.
Quote:
two variables are set equal
X = Y 1=1
Add X to both sides
X + X = Y + X 1+1 = 1+1
Simplify
2X = X + Y 2(1)=1+1
subtract 2Y from both sides
2X - 2Y = X + Y - 2Y 2(1)-2(1) = 1 + 1 - 2(1)
simplify
2X-2Y = X - Y 2(1)-2(1) = 1 - 1
Factor
2(X - Y) = 1(X - Y) 2(1-1)=1(1-1)
Meaing:
2(0)=1(0)
0=0
[/b]
Your avatars color is off... :roll: