Question: Why is Maple so slow with the following integral calculations?


restart

with(plots)


u := proc (x) options operator, arrow; int(exp(-(x-xi)^2)*f(xi), xi = -infinity .. infinity, numeric) end proc; f := proc (x) options operator, arrow; 1/(1+x^2) end proc; u(4.0); plot(u(x), x = -10 .. 10)

.1139815572

(1)

``

``

Is there a way to speed up the calculations?
Thank you.

Download slow.mw

Please Wait...