Some symbolic integrals seem to take much longer to compute in MATLAB 7.9 (R2009b) than in MATLAB 7.6 (R2008a). For example, the following code takes at least 10 times longer to execute in MATLAB 7.9 (R2009b) as compared to MATLAB 7.6 (R2008a)
syms x x0 x1 x2 x3 f0 f1 f2 f3 hy= ((x-x1)*(x-x2)*(x-x3))/((x0-x1)*(x0-x2)*(x0-x3))*f0... +((x-x0)*(x-x2)*(x-x3))/((x1-x0)*(x1-x2)*(x1-x3))*f1... +((x-x0)*(x-x1)*(x-x3))/((x2-x0)*(x2-x1)*(x2-x3))*f2... +((x-x0)*(x-x1)*(x-x2))/((x3-x0)*(x3-x1)*(x3-x2))*f3I=int(y,x,x0,x3)
Best Answer