Skip to content

Commit df12d46

Browse files
committed
I see Tupac is still alive.
1 parent c6bca5c commit df12d46

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

toolbox/+otp/+cr3bp/+presets/HaloOrbit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
% create internal table of halo orbit initial conditions
6161
% The first entry of each row is the orbital period, the second entry is
6262
% the $x$ initial condition, the third entry is the $z$ initial condition
63-
% and the fourth entry is the $y'$ intial condition.
63+
% and the fourth entry is the $y'$ initial condition.
6464
switch orbittype
6565
case 'L2'
6666
T = [ ...

toolbox/+otp/+cr3bp/CR3BPProblem.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
% non-dimensionalized differential equation:
1515
%
1616
% $$
17-
% x'' &= σ(y - x),\\
18-
% y'' &= ρx - y - xz,\\
19-
% z'' &= xy - βz,\\
17+
% x'' &= 2y' + \frac{\partial U}{\partial x},\\
18+
% y'' &= -2x' + \frac{\partial U}{\partial y},\\
19+
% z'' &= \frac{\partial U}{\partial z},\\
2020
% U &= \frac{1}{2} (x^2 + y^2) + \frac{1 - \mu}{d} + \frac{mu}{r},\\
2121
% d &= \sqrt{(x + \mu)^2 + y^2 + z^2},\\
2222
% r &= \sqrt{(x - 1 + \mu)^2 + y^2 + z^2},
@@ -49,7 +49,7 @@
4949
%
5050
% Example
5151
% -------
52-
% >>> problem = otp.cr3bp.presets.NRHO;
52+
% >>> problem = otp.cr3bp.presets.HaloOrbit('OrbitType', 'L2', 'Index', 10);
5353
% >>> sol = model.solve();
5454
% >>> problem.plotPhaseSpace(sol);
5555
%

0 commit comments

Comments
 (0)