Skip to content

Commit

Permalink
Add two missing imports to the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Aug 30, 2024
1 parent 564495c commit f610374
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/tutorials/dae.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Currently, we recommend using the semi-implicit `EK1` algorithm.

First, define the DAE (here the ROBER problem) as an ODE problem with singular mass matrix:
```@example dae
using ProbNumDiffEq, Plots, LinearAlgebra, OrdinaryDiffEq, ModelingToolkit
using ProbNumDiffEq, Plots, LinearAlgebra, OrdinaryDiffEq, ModelingToolkit, LinearAlgebra
function rober(du, u, p, t)
y₁, y₂, y₃ = u
Expand Down
2 changes: 2 additions & 0 deletions docs/src/tutorials/dynamical_odes.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ The probabilistic numerical solvers from ProbNumDiffEq.jl have the same internal
As a result, we can use the `EK1` both for first and second order ODEs, but it automatically specializes on the latter to provide a __2x performance boost__:

```
julia> using BenchmarkTools
julia> @btime solve(prob, EK1(order=3), adaptive=false, dt=1e-2);
766.312 ms (400362 allocations: 173.38 MiB)
Expand Down

0 comments on commit f610374

Please sign in to comment.