Question: Extensive symbolic computations, Is there any way to accelerate?

Hi,

I am dealing with the following problem, which has extensive symbolic computations. It was taking extremely long in MATLAB so I thought of Maple. It turns out that Maple is also taking pretty long time. Is there any way to accelerate this in Maple (or in MATLAB).

I am attaching a two-line Maple code (Thanks Alec for the previous help)

u := (1-cos(x)):
for i to 10 do u := u+int(subs(x = t, diff(u, [`$`(x, 2)])+u-A*(1+2*u+3*u^2+4*u^3))*(t-x), t = 0 .. x) end do:

where A is a constant.

(PS: It is a code for implementing the Variational Iteration Method)

Thanks in advance.

--Manish

Please Wait...