a=b
a^2 = ab
a^2-b^2 = ab-b^2
(a+b)(a-b) = b(a-b)
(a+b)=b
(a+a)=a
2a = a
2 = 1
valid?
a=b
a^2 = ab
a^2-b^2 = ab-b^2
(a+b)(a-b) = b(a-b)
(a+b)=b
(a+a)=a
2a = a
2 = 1
valid?
No, because a-b equals zero, therefore you are dividing by zero which is a no-no. Its like saying zero times three equals zero times four, cancel the zeroes and you get three equals four.
Where did you get 2=1? As far as I can tell, a and b both equal 0
"Think not but that I know these things; or think
I know them not: not therefore am I short
Of knowing what I ought."
-John Milton, Paradise Regained (1671)
"Work hard and it might happen."
-XSquared
well if you said a=b=2
PJ: i see it now. cant divide by zero
This thread gets two thumbs down.
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.