Skip to content

Commit 0e7cad9

Browse files
docs: fix tolerances in Events.md
1 parent 819785a commit 0e7cad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/basics/Events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ prob = ODEProblem(ball, Pair[], tspan)
126126
127127
sol = solve(prob, Tsit5())
128128
@assert 0 <= minimum(sol[x]) <= 1e-10 # the ball never went through the floor but got very close
129-
@assert minimum(sol[y]) > -1.5 # check wall conditions
130-
@assert maximum(sol[y]) < 1.5 # check wall conditions
129+
@assert minimum(sol[y]) >= -1.5 # check wall conditions
130+
@assert maximum(sol[y]) <= 1.5 # check wall conditions
131131
132132
tv = sort([LinRange(0, 10, 200); sol.t])
133133
plot(sol(tv)[y], sol(tv)[x], line_z = tv)

0 commit comments

Comments
 (0)