From 027bb7f829eb7233244c7bb59d747494709b110d Mon Sep 17 00:00:00 2001 From: Juan Carlos Ponce Campuzano <37394697+jcponce@users.noreply.github.com> Date: Tue, 1 Aug 2023 09:53:06 +1000 Subject: [PATCH] Update lecture-06.html --- math1052/lecture-06.html | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/math1052/lecture-06.html b/math1052/lecture-06.html index af10b95ef..c47dac233 100644 --- a/math1052/lecture-06.html +++ b/math1052/lecture-06.html @@ -1264,17 +1264,22 @@
Matlab has some more sophisticated numerical methods for solving ODEs than - Euler's method. - Matlab's ode45 uses a - Runge-Kutta fourth-order integration - technique. To use it you need to write two little programs. The first - one, say logistic.m, - defines the differential equation + Euler's method. + + + Matlab's ode45 uses a + Runge-Kutta fourth-order integration + technique. + + + To use it you need to write two little programs. The first + one, say logistic.m, + defines the differential equation
-
function dy = logistic(t, y)
dy = y * (1 - y);
@@ -1284,14 +1289,14 @@ 1 Ordinary Differential Equations
-
+
The second program will numerically solve the ODE and plot your
solution.
y0 = 0.1;
tfinal = 6;