Things You'll Need
Instructions
Run Maple and create a new Maple worksheet.
Define the ordinary differential equation function in Maple. This can be done using the line:
In this case x + y^2 is the defined function
Set the starting value for x (dependent variable). This can be done using the line:
"a:=0"
In this case a is being set to zero.
Set the starting value for y (independent variable). This can be done using the line:
"φ0:=0"
In this case φ is being set to zero.
Set the number of iterations. This is the number of times, the Picard iteration is applied to the equation. It can be set using the line:
"N:=3"
In this case three iterations are being performed
Run the Picard method. This can be done using the following code:
for k from 0 to N-1 do
The iterative solution will be displayed when the code has been run.
"f:= (x,y) ͛4; x + y^2"
φk+1:=unapply( φ0 + ͪ7;(f(t,φk(t) dt x)
print(nprintf("Iteration number %d",k+1)
print(φk+1(x))
end do