@@ -14,14 +14,14 @@ discrete callbacks. [`JumpSystem`](@ref)s currently support only
14
14
` discrete_events ` . Continuous events are applied when a given condition becomes
15
15
zero, with root finding used to determine the time at which a zero crossing
16
16
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
18
18
docs] ( https://docs.sciml.ai/stable/modules/DiffEqDocs/features/callback_functions/ )
19
19
for more detail.
20
20
21
21
Events involve both a * condition* function (for the zero crossing or truth
22
22
test), and an * affect* function (for determining how to update the system when
23
23
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
25
25
below.
26
26
27
27
## Continuous Events
@@ -145,7 +145,7 @@ of one or more equations, an affect is defined as a `tuple`:
145
145
```
146
146
where, ` affect! ` is a Julia function with the signature: `affect!(integ, u, p,
147
147
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
149
149
passed to ` affect! ` as the ` ctx ` argument.
150
150
151
151
` affect! ` receives a [ DifferentialEquations.jl
@@ -157,7 +157,7 @@ behavior, see the [integrator
157
157
interface] ( https://docs.sciml.ai/stable/modules/DiffEqDocs/basics/integrator/ )
158
158
documentation. In affect functions we have that
159
159
``` julia
160
- function affect! (integ, u, v , ctx)
160
+ function affect! (integ, u, p , ctx)
161
161
# integ.t is the current time
162
162
# integ.u[u.v] is the value of the state `v` above
163
163
# integ.p[p.q] is the value of the parameter `q` above
0 commit comments