浏览代码

Add some comments

Pjotir 4 周之前
父节点
当前提交
d36bf1f9d5
共有 1 个文件被更改,包括 6 次插入 和 0 次删除
  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)