News for hackers. Stuff that matters.

Is this a contradiction on Wolfram Alpha?

Consider the two following inputs to Wolfram Alpha:

10(0/0)

and:

x(y/y) where x=10,y=0

The result of the first, as expected, is indeterminate:

http://www.wolframalpha.com/input/?i=10(0/0)

But the second is 10:

http://www.wolframalpha.com/input/?i=x(y/y)+where+x+%3D+10,+y+%3D+0

Is this a bug?

( 5 comments | 2 points | on HN )
Re:Is this a contradiction on Wolfram Alpha? by JoeyS1980 on Monday December 21, 2009 @02:40PM (#1008442)
Definitely it is a bug in the Wolfram Alpha.

Mathematically the correct answer is "Indeterminate" but parsing the statement in a computer science world, both results are correct.

The statement "10(0/0)" requires no reduction of equation. The statement will translated into "10 * ( 0 / 0 )" but the statement "X(Y/Y)" it requires reduction of equation into "X" therefor all you need is the value of X.

Re:Is this a contradiction on Wolfram Alpha? by RiderOfGiraffes on Monday December 21, 2009 @02:16PM (#1008400)
Pragmatist engineers will say that y/y is always equal to 1, so x(y/y) will always equal x.

Mathematicians will say that such reasoning has been known to lead to contradictory conclusions, and the form (y/y) is always equal to 1, except when y=0, inwhich case it is indeterminate.

You need to choose which universe you live in, and how paranoid you have to be.

Re:Is this a contradiction on Wolfram Alpha? by teilo on Monday December 21, 2009 @02:23PM (#1008412)
So Wolfram Alpha is erring on the side of the Engineers rather than the Mathematicians?
Re:Is this a contradiction on Wolfram Alpha? by teilo on Monday December 21, 2009 @02:00PM (#1008358)
Re:Is this a contradiction on Wolfram Alpha? by Freebytes on Monday December 21, 2009 @01:52PM (#1008340)
You put x(y/y) so if y is ever 0, it should be indeterminate, I believe. Both equations appear to equal the same thing which is indeterminate.