Skip to content

Commit 5d8bec0

Browse files
Update faq.md
1 parent 380cc55 commit 5d8bec0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/basics/faq.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ To show this in action, let's say we want to find the Jacobian of solution
472472
of the Lotka-Volterra equation at `t=10` with respect to the parameters.
473473

474474
```@example faq1
475-
import DifferentialEquations
475+
import DifferentialEquations as DE
476476
function func(du, u, p, t)
477477
du[1] = p[1] * u[1] - p[2] * u[1] * u[2]
478478
du[2] = -3 * u[2] + u[1] * u[2]
@@ -527,7 +527,7 @@ option in the solver. Every solver which uses autodifferentiation has this optio
527527
Thus, we'd solve this with:
528528

529529
```julia
530-
import DifferentialEquations, OrdinaryDiffEq as ODE
530+
import DifferentialEquations as DE, OrdinaryDiffEq as ODE
531531
prob = DE.ODEProblem(f, ones(5, 5), (0.0, 1.0))
532532
sol = DE.solve(prob, ODE.Rosenbrock23(autodiff = false))
533533
```
@@ -571,7 +571,7 @@ ERROR: ArgumentError: pattern of the matrix changed
571571
though, an `Error: SingularException` is also possible if the linear solver fails to detect that the sparsity structure changed. To address this issue, you'll need to disable caching the symbolic factorization, e.g.,
572572

573573
```julia
574-
import DifferentialEquations, OrdinaryDiffEq as ODE, LinearSolve
574+
import DifferentialEquations as DE, OrdinaryDiffEq as ODE, LinearSolve
575575
DE.solve(prob, ODE.Rodas4(linsolve = LinearSolve.KLUFactorization(; reuse_symbolic = false)))
576576
```
577577

0 commit comments

Comments
 (0)