Kaynağa Gözat

Add some comments

Pjotir 4 hafta önce
ebeveyn
işleme
d36bf1f9d5
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      Homework3/problem3_2ndorderODE.m

+ 6 - 0
Homework3/problem3_2ndorderODE.m

@@ -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)