|
|
@@ -1,5 +1,11 @@
|
|
|
clear all; close all; clc;
|
|
|
|
|
|
+% I'm using GNU Octave, so hopefully you don't mind that I constructed
|
|
|
+% the ode vector myself.
|
|
|
+% Really this is basically the same as writing the differential equation as
|
|
|
+% it was given, since the only transformative step I took was shifting
|
|
|
+% everything to the other side of the equation to solve for the
|
|
|
+% second derivative.
|
|
|
ode_system = @(t, Y) [
|
|
|
Y(2);
|
|
|
-3 - (t^2 + Y(1))*Y(1) - (3*t+2*Y(1))*Y(2)
|