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/basics/faq.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -472,7 +472,7 @@ To show this in action, let's say we want to find the Jacobian of solution
472
472
of the Lotka-Volterra equation at `t=10` with respect to the parameters.
473
473
474
474
```@example faq1
475
-
import DifferentialEquations
475
+
import DifferentialEquations as DE
476
476
function func(du, u, p, t)
477
477
du[1] = p[1] * u[1] - p[2] * u[1] * u[2]
478
478
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
527
527
Thus, we'd solve this with:
528
528
529
529
```julia
530
-
import DifferentialEquations, OrdinaryDiffEq as ODE
530
+
import DifferentialEquations as DE, OrdinaryDiffEq as ODE
531
531
prob = DE.ODEProblem(f, ones(5, 5), (0.0, 1.0))
532
532
sol = DE.solve(prob, ODE.Rosenbrock23(autodiff =false))
533
533
```
@@ -571,7 +571,7 @@ ERROR: ArgumentError: pattern of the matrix changed
571
571
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.,
572
572
573
573
```julia
574
-
import DifferentialEquations, OrdinaryDiffEq as ODE, LinearSolve
574
+
import DifferentialEquations as DE, OrdinaryDiffEq as ODE, LinearSolve
0 commit comments