in reply to Meaning Of error in perl

See this:
Lets assume x = y
That means 2x = 2y
That means 2*(x-y) = 1*(x-y)
Dividing by (x-y) both sides, we get 2 = 1
So, that is wrong since x = y being x-y = 0. As such division by 0 is not acceptable in Mathmatics. You can call it Infinity.
That is why that error.

Replies are listed 'Best First'.
Re^2: Meaning Of error in perl
by Anonymous Monk on Jul 08, 2014 at 07:40 UTC

    Lets assume x = y
    That means 2x = 2y
    That means 2*(x-y) = 1*(x-y)

    How did you go from line 2 to line 3, for ...

    x = y or, 2x = 2y or, 2x - 2y = 2y - 2y or, x - y = 0

    ... which was the origin with the assumption of x = y of course?

      x = y
      2x-x = 2y-y
      2x-2y = x-y
      2*(x-y) = 1*(x-y)

        Ah, now I remember where I saw something similar long time ago: False Proofs, Classic Fallacies, http://mathforum.org/dr.math/faq/faq.false.proof.html (got "permission denied" error when trying to post the URL as a link).

Re^2: Meaning Of error in perl
by grewal7634 (Novice) on Jul 08, 2014 at 07:27 UTC
    Thanks