Skip to content

Commit 58f412c

Browse files
fix a few more bugs
1 parent 3b2d34e commit 58f412c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/examples/kepler_problem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ analysis_plot2(sol6, H, L)
137137
There is almost no energy variation but angular momentum varies quite bit. How about only project to the angular momentum conservation manifold?
138138

139139
```@example kepler
140-
function angular_manifold(residual,u)
140+
function angular_manifold(residual,u,p,t)
141141
residual[1:2] .= initial_first_integrals[2] - L(u[1:2], u[3:4])
142142
residual[3:4] .= 0
143143
end

docs/src/examples/min_and_max.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ f = (t) -> sol(t,idxs=4)
5858
function is `f`:
5959

6060
```@example minmax
61-
using Optimization, OptimizationNLopt
61+
using Optimization, OptimizationNLopt, ForwardDiff
6262
optf = OptimizationFunction(f, AutoForwardDiff())
6363
min_guess = 18.0
6464
optprob = OptimizationProblem(optf, min_guess)

0 commit comments

Comments
 (0)