Community Profile

photo

민석 최


Last seen: 2 years ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


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

2 years ago | 1 answer | 0

1

answer

Question


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

2 years ago | 1 answer | 0

1

answer

Question


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

2 years ago | 0 answers | 0

0

answers