Feeds
提问
what is wrong with this euler method code?
x=0; y=0; a=0; b=5; h=.01; n=(b-a)/h; for i=1:n x(i)=a+(i-1)*h; x(i+1)=a+i*h; f = y(i)-5-exp(x(i)/2)s...
10 years 前 | 1 个回答 | 0
1
个回答提问
won't run euler method
x=0 y=1 a=0 b=5 h=0.1 n=(b-a)/h; f(x(i),y(i))= -2*y(i)+2-e^(-4*x(i)) for i=1:n x(i)=a+(i-1)*h ...
10 years 前 | 2 个回答 | 0