You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/tutorials/extremum.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Let's walk through this functionality with an intuitive example. We still revisi
12
12
where `lb=-4.8161991710010925` and `ub=5.0496477654230745`. So the states must conform that the maximum value of the state should be `lb` while the minimum value of the state should be `ub`. To solve such problems, we can simply use the `maxsol` and `minsol` functions when defining the boundary value problem in BoundaryValueDiffEq.jl.
13
13
14
14
```@example inequality
15
-
using BoundaryValueDiffEq, Plots
15
+
using BoundaryValueDiffEq
16
16
tspan = (0.0, pi / 2)
17
17
function simplependulum!(du, u, p, t)
18
18
θ = u[1]
@@ -25,6 +25,16 @@ function bc!(residual, u, p, t)
25
25
residual[2] = minsol(u, (0.0, pi / 2)) + 4.8161991710010925
0 commit comments