Skip to content

Commit

Permalink
Update lecture-04.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jcponce committed Jul 31, 2023
1 parent c5c2d04 commit f3057ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions math1052/lecture-04.html
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ <h4>1 Ordinary Differential Equations</h4>
t = (0:0.05:0.6);
y(1) = 0;
for i = 1:12
y(i+1) = y(i) + 2 * t(i) * 0.05;
y(i+1) = y(i) + 2 * t(i) * 0.05;
end
y(13)
plot(t, y,'-')
Expand Down Expand Up @@ -656,7 +656,7 @@ <h4>1 Ordinary Differential Equations</h4>
x = (0:0.01:2);
y(1) = 1;
for i = 1:200
y(i+1) = y(i) + sin(x(i) * y(i)) * 0.01;
y(i+1) = y(i) + sin(x(i) * y(i)) * 0.01;
end
y(201)
plot (x,y,'-')
Expand Down

0 comments on commit f3057ba

Please sign in to comment.