Dear all,
In previous versions of Sage I was able to do very quickly some numerical integrations involving unit_step(t) function .
But, in the last updates (8.9 and 9.0) , it takes 6 times longer to do the numerical integral of convolution with unit_step(), than to do the same operation with a gaussian function.
It does not seem to be o.k., comparing the simplicity of unit_step() with the gaussian $e^{-t^2}$.
#Compare:
var('x,t')
f= e^(-(t-1)^2)
g= sin(t)
fg= lambda t: numerical_integral(f(t=x)*g(t=t-x),0,t,params=[0])[0]
plot(fg,t,0,3)
#with:
var('x,t')
f= unit_step(t-1)
g= sin(t)
fg= lambda t: numerical_integral(f(t=x)*g(t=t-x),0,t,params=[0])[0]
plot(fg,t,0,3)
Thanks for your attention.