You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/examples/kepler_problem.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ Both Runge-Kutta-Nyström and Runge-Kutta integrator do not conserve energy nor
93
93
In this example, we know that energy and angular momentum should be conserved. We can achieve this through manifold projection. As the name implies, it is a procedure to project the ODE solution to a manifold. Let's start with a base case, where manifold projection isn't being used.
94
94
95
95
```@example kepler
96
-
import DiffEqCallbacks
96
+
import DiffEqCallbacks as CB
97
97
98
98
function plot_orbit2(sol)
99
99
Plots.plot(sol, vars = (1, 2), lab = "Orbit", title = "Kepler Problem Solution")
@@ -127,7 +127,7 @@ function first_integrals_manifold(residual, u, p, t)
0 commit comments