fprimeau

20 Reputation

2 Badges

16 years, 325 days

MaplePrimes Activity


These are questions asked by fprimeau

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)));

Can anyone explain why I get a different answer if I use int instead of Int in the following evaluation:

> evalf(subs(r = 1, Int(Int(Dirac(x1+x2-r)*q, x1 = 0 .. 1), x2 = 0 .. 1)));
1.676209155
> evalf(subs(r = 1, int(int(Dirac(x1+x2-r)*q, x1 = 0 .. 1), x2 = 0 .. 1)));
0.
Page 1 of 1