Question: Maple equivalent for a simple Matlab code

Hi,

I am new to Maple and wish to convert the following simple code written in Matlab to its equivalent Maple.

------------------------------------------------------------------------------------------------------------------------

syms x
F=x^2;
for i=1:5
    G=F+int(F);
    F=G;
end

------------------------------------------------------------------------------------------------------------------------

Note that, G uses the information of F and F itself gets modified in the loop. The Matlab output for F is,

F= x^2+5/3*x^3+5/6*x^4+1/6*x^5+1/72*x^6+1/2520*x^7

It will be of great help if somebody can help me out.

Thanks in advance

-Manish

 

Please Wait...