| Author |
Comment/Response |
Bill Simpson
|
05/01/12 12:05pm
Since your Piecewise function appears to only be a unit step function, pull that step out into the bounds of integration. This then appears to integrate almost instantly.
In[1]:= f[x_]:=Sin[x];q=1/E;
Integrate[Integrate[x f'''[x],{x,0,Min[1/q,1+u-Floor[q]]}, Assumptions->q>0],{u,0,1/q}, Assumptions->q>0]
Out[3]= E-Cos[1]-Cos[E]+E Cos[E]+2 Sin[1]-2 Sin[E]-E Sin[E]
Be careful that you get the bounds of integration correct. If you can see how to get rid of that Min[] it would probably be even better.
URL: , |
|