Skip to content

Commit fe7da52

Browse files
committed
Format
1 parent 1201d4f commit fe7da52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/basics/FAQ.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ eqs = [x1 + x2 + 1 ~ 0
197197
2 * D(D(x1)) + D(D(x2)) + D(D(x3)) + D(x4) + 4 ~ 0]
198198
@named sys = ODESystem(eqs, t)
199199
sys = structural_simplify(sys)
200-
prob = ODEProblem(sys, [], (0,1))
200+
prob = ODEProblem(sys, [], (0, 1))
201201
```
202202

203203
We can solve this problem by using the `missing_variable_defaults()` function
204204

205205
```julia
206-
prob = ODEProblem(sys, ModelingToolkit.missing_variable_defaults(sys), (0,1))
206+
prob = ODEProblem(sys, ModelingToolkit.missing_variable_defaults(sys), (0, 1))
207207
```
208208

209209
This function provides 0 for the default values, which is a safe assumption for dummy derivatives of most models. However, the 2nd argument allows for a different default value or values to be used if needed.
@@ -225,10 +225,10 @@ container type. For example:
225225
using ModelingToolkit, StaticArrays
226226
using ModelingToolkit: t_nounits as t, D_nounits as D
227227

228-
sts = @variables x1(t)=0.0
228+
sts = @variables x1(t) = 0.0
229229
eqs = [D(x1) ~ 1.1 * x1]
230230
@mtkbuild sys = ODESystem(eqs, t)
231-
prob = ODEProblem{false}(sys, [], (0,1); u0_constructor = x->SVector(x...))
231+
prob = ODEProblem{false}(sys, [], (0, 1); u0_constructor = x->SVector(x...))
232232
```
233233

234234
## Using a custom independent variable

0 commit comments

Comments
 (0)