Skip to content

Commit c617e57

Browse files
Add a part on parameters
1 parent 117ff74 commit c617e57

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: docs/src/tutorials/initialization.md

+9
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ sol = solve(prob, Rodas5P())
117117
plot(sol, idxs = (x,y))
118118
```
119119

120+
Additionally, note that the initial conditions are allowed to be functions of other
121+
variables and parameters:
122+
123+
```@example init
124+
prob = ODEProblem(pend, [x => 1, D(y) => g], (0.0, 3.0), [g => 1], guesses = [λ => 0, y => 1])
125+
sol = solve(prob, Rodas5P())
126+
plot(sol, idxs = (x,y))
127+
```
128+
120129
## Determinability: Underdetermined and Overdetermined Systems
121130

122131
For this system we have 3 conditions to satisfy:

0 commit comments

Comments
 (0)