photo

Louis


Active since 2014

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


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...

mer än 10 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 10 år ago | 2 answers | 0

2

answers