Skip to content

Commit a99c4cc

Browse files
authored
fix math formatting in docstring (#143)
1 parent 1fcb3b6 commit a99c4cc

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/Blocks/continuous.jl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -425,20 +425,26 @@ end
425425
426426
A linear, time-invariant state-space system on the form.
427427
```math
428-
ẋ = Ax + Bu
429-
y = Cx + Du
428+
\\begin{aligned}
429+
ẋ &= Ax + Bu \\\\
430+
y &= Cx + Du
431+
\\end{aligned}
430432
```
431433
Transfer functions can also be simulated by converting them to a StateSpace form.
432434
433435
`y0` and `u0` can be used to set an operating point, providing them changes the dynamics from an LTI system to the affine system
434436
```math
435-
ẋ = Ax + B(u - u0)
436-
y = Cx + D(u - u0) + y0
437+
\\begin{aligned}
438+
ẋ &= Ax + B(u - u0) \\\\
439+
y &= Cx + D(u - u0) + y0
440+
\\end{aligned}
437441
```
438442
For a nonlinear system
439443
```math
440-
ẋ = f(x, u)
441-
y = h(x, u)
444+
\\begin{aligned}
445+
ẋ &= f(x, u) \\\\
446+
y &= h(x, u)
447+
\\end{aligned}
442448
```
443449
linearized around the operating point `x₀, u₀`, we have `y0, u0 = h(x₀, u₀), u₀`.
444450
"""

0 commit comments

Comments
 (0)