File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programming Diversions and the fly likes I will prove 1=0 ; spot the fallacy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "I will prove 1=0 ; spot the fallacy" Watch "I will prove 1=0 ; spot the fallacy" New topic
Author

I will prove 1=0 ; spot the fallacy

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2046
Let X = Y

Subtract both sides by Y

X-Y = Y-Y

Divide both sides by X-Y

X-Y Y-Y
--- = ---
X-Y X-Y

Simplify the equation
Left side is 1 since numerator and denomenator are the same.
Right side is 0 because the numerator is Y-Y which is 0.

Therefore,

1 = 0
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Divide by zero After that, everything else is invalid.
We had an interesting 'discussion' on the effects of dividing by zero a while back, but I won't go looking for a link since it mostly revolved around one person saying computers should check for divide by zero errors, and the rest of us saying they should
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
My dad used to prove 1==2 with some trick like that, but he filled the blackboards all the way around his classroom to do it.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2046
it was my father too who showed this to me.

i wont be surprised if i show this to my future children; at least to those interested in math.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
5=6


My blood is tested +ve for Java.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I will prove 1=0 ; spot the fallacy
 
Similar Threads
KB Question pg 314
Postfix Increment/Decrement Operators
Does this count?
A flatland puzzle
[easy]Remainder