Question: to simplify or not to simplify -- the answer depends on the choice

This is related to my previous question regarding int versus Int.

In the process of trying to answer my own question I tried the following:

> q := exp(-x1*log(x1)-x2*log(x2));
                         exp(-x1 ln(x1) - x2 ln(x2))
>
> evalf(subs(r = 1, int(int(Dirac(x1+x2-r)*q, x1 = 0 .. 1), x2 = 0 .. 1)));
0.
> evalf(subs(r = 1, int(simplify(int(Dirac(x1+x2-r)*q, x1 = 0 .. 1)), x2 = 0 .. 1)));
1.676209155
>
Why should simplifying at an intermediate step lead to a different answer?
Thanks,
Francois
Please Wait...