Skip to content

Commit 5281b3f

Browse files
Merge pull request #1753 from visr/event-docs
doc: edits to Events
2 parents 95a2c6d + 7f41c5a commit 5281b3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/basics/Events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ discrete callbacks. [`JumpSystem`](@ref)s currently support only
1414
`discrete_events`. Continuous events are applied when a given condition becomes
1515
zero, with root finding used to determine the time at which a zero crossing
1616
occurred. Discrete events are applied when a condition tested after each
17-
timestep evalutes to true. See the [DifferentialEquations
17+
timestep evaluates to true. See the [DifferentialEquations
1818
docs](https://docs.sciml.ai/stable/modules/DiffEqDocs/features/callback_functions/)
1919
for more detail.
2020

2121
Events involve both a *condition* function (for the zero crossing or truth
2222
test), and an *affect* function (for determining how to update the system when
2323
the event occurs). These can both be specified symbolically, but a more [general
24-
functional affect](@id func_affects) representation is also allowed as described
24+
functional affect](@ref func_affects) representation is also allowed as described
2525
below.
2626

2727
## Continuous Events
@@ -145,7 +145,7 @@ of one or more equations, an affect is defined as a `tuple`:
145145
```
146146
where, `affect!` is a Julia function with the signature: `affect!(integ, u, p,
147147
ctx)`; `[u,v]` and `[p,q]` are the symbolic states (variables) and parameters
148-
that are accessed by `affect!`, respectively; and `ctx` is a context that is
148+
that are accessed by `affect!`, respectively; and `ctx` is any context that is
149149
passed to `affect!` as the `ctx` argument.
150150

151151
`affect!` receives a [DifferentialEquations.jl
@@ -157,7 +157,7 @@ behavior, see the [integrator
157157
interface](https://docs.sciml.ai/stable/modules/DiffEqDocs/basics/integrator/)
158158
documentation. In affect functions we have that
159159
```julia
160-
function affect!(integ, u, v, ctx)
160+
function affect!(integ, u, p, ctx)
161161
# integ.t is the current time
162162
# integ.u[u.v] is the value of the state `v` above
163163
# integ.p[p.q] is the value of the parameter `q` above

0 commit comments

Comments
 (0)