Initial Value ProblemThe Euler method in a loop
h=0.1;
yprime=-1;
y(1)=1;
for i=2:100
y(i)=y(i-1)+yprime*h;
yprime=-y(i);
end
What are the considerations for using small/large
time steps?
Previous slide
Next slide
Back to first slide
View graphic version