You must be logged in to reply to this topic.
- code for improved euler's method in maple
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
You must be logged in to reply to this topic.
improved euler’s method
f:= (t,y)->equation entered;
t0:=initial t:
y0:=initial y:
n:=number of terms you want;
h:=step size;
t:=t0:
y:=y0:
for i from 1 to n do
k1:=f(t,y):
k2:=f(t+h,y+h*k1):
y:=y+h*k:
t:=t+h:
print(t,y);
od:
You must be logged in to reply to this topic.
Ursula C. Schwerin Library
New York City College of Technology, C.U.N.Y
300 Jay Street, Library Building - 4th Floor
Our goal is to make the OpenLab accessible for all users.