function this_is_so_easy
z = 0;
x = 1;
a = 3;
w = 2*pi;
h = 1e-3;
kmax = 10000;
for i = 1:kmax
b = get_it(z,a,x,w);
z = z + h*b;
x = x + h;
end
function b = get_it(z,a,x,w)
b = z - a*sin(z^2) + a*cos(w*x);
end
function c = getc(z,a,x,w)
c = 1 - 2*a*z*cos(z^2);
end
(a) What ODE is solved by this program?;
(b) What is the initial condition?; (c) What
do the variables a and b represent?; (d)
What numerical method is implemented
by the for loop?; (e) what is the value of
the independent variable at the end of the
program? In all your answers you need to
provide details.