Skip to content

Commit

Permalink
fix broken example
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Feb 10, 2024
1 parent 2ddccfe commit 95a7ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/tutorials/numerical_integrals.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function f(y, u, p)
y[2] = sum(cos.(u))
end
prototype = zeros(2)
prob = IntegralProblem(IntegralProblem(f, prototype), ones(3), 3ones(3))
prob = IntegralProblem(IntegralFunction(f, prototype), ones(3), 3ones(3))
sol = solve(prob, CubatureJLh(); reltol = 1e-3, abstol = 1e-3)
sol.u
```
Expand Down

0 comments on commit 95a7ba7

Please sign in to comment.