Feeds
提问
How can I change this code to euler backward method? (implicit method)
f = @(t,y) -100000*y + 99999*exp(-t); t0 = 0; y0 =0; h = 0.01; tn = 2; n = (tn-t0)/h; t(1)=t0; y(1)=y0; for i=1:n t(i+...
3 years 前 | 1 个回答 | 0
1
个回答提问
How can I change this explicit method code to the implicit method code?
f = @(t,y) -100000*y + 99999*exp(-t); t0 = 0; y0 =0; h = 0.01; tn = 2; n = (tn-t0)/h; t(1)=t0; y(1)=y0; for i=1:n t(i+...
3 years 前 | 1 个回答 | 0
1
个回答提问
How can I change this explicit method code to the implicit method code?
f = @(t,y) -100000*y + 99999*exp(-t); t0 = 0; y0 =0; h = 0.01; tn = 2; n = (tn-t0)/h; t(1)=t0; y(1)=y0; for i=1:n t(i+...
3 years 前 | 0 个回答 | 0
