Professional Documents
Culture Documents
× ★★★★★ GE T APP
4,500+ five-star reviews
Expert Answer
asdads
answered this
a)
at t= 0, N = 1000
b)
By FDM
Here
c)
Matlab Code:
clear;clc;
t = 0:0.2:10;
ya = 1000*exp(-0.1.*t);
yb = zeros(51,1);
yb(1) = 1000;
for i = 1:50
yb(i+1) = (yb(i))/1.02;
end
[t,yc] = ode45(@deriv,t,1000);
plot(t,ya,'o');
hold on;
plot(t,yb,'.');
hold on;
plot(t,yc,'-');
hold on;
legend('a','b','c');
dndt = - 0.1*N;
end
d)
Since all three method closely follow each other, they end up with same result.
0 Comments
0
Up next for you in Mechanical Engineering
Show more
COMPANY
CHEGG NETWORK
CUSTOMER SERVICE