Skip to content

Commit 996c214

Browse files
authored
Update ode_solve.md
update to use ADTypes for autodiff in examples
1 parent e395db0 commit 996c214

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/solvers/ode_solve.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,9 +783,9 @@ Examples:
783783

784784
```julia
785785
sol = solve(prob, Rosenbrock23()) # Standard, uses autodiff
786-
sol = solve(prob, Rosenbrock23(chunk_size = 10)) # Autodiff with chunksize of 10
787-
sol = solve(prob, Rosenbrock23(autodiff = false)) # Numerical differentiation with central differencing
788-
sol = solve(prob, Rosenbrock23(autodiff = false, diff_type = Val{:forward})) # Numerical differentiation with forward differencing
786+
sol = solve(prob, Rosenbrock23(autodiff = AutoForwardDiff(chunksize = 10)) # Autodiff with chunksize of 10
787+
sol = solve(prob, Rosenbrock23(autodiff = AutoFiniteDiff()) # Numerical differentiation with central differencing
788+
sol = solve(prob, Rosenbrock23(autodiff = AutoFiniteDiff(fdtype = Val{:forward})) # Numerical differentiation with forward differencing
789789
```
790790
791791
#### Tableau Method

0 commit comments

Comments
 (0)