Skip to content

Commit

Permalink
Fix manual-stepping example (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
VIVelev authored and patrick-kidger committed Aug 25, 2023
1 parent 104936a commit 737bf39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/usage/manual-stepping.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ In the following example, we solve an ODE using [`diffrax.Tsit5`][], and print o
See the [Abstract solvers](../api/solvers/abstract_solvers.md) page for a reference on the solver methods (`init`, `step`) used here.

```python
import jax.numpy as jnp
from diffrax import ODETerm, Tsit5

vector_field = lambda t, y, args: -y
Expand All @@ -20,7 +21,7 @@ solver = Tsit5()
t0 = 0
dt0 = 0.05
t1 = 1
y0 = 1
y0 = jnp.array(1.0)
args = None

tprev = t0
Expand Down

0 comments on commit 737bf39

Please sign in to comment.