Skip to content

Commit 2f87ff1

Browse files
authored
docs: cleaner and more concise transfer function of Derivative() (#277)
1 parent a739b22 commit 2f87ff1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Blocks/continuous.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,23 @@ end
3535
Derivative(; name, k = 1, T, x = 0.0)
3636
3737
Outputs an approximate derivative of the input. The transfer function of this block is
38-
Initial value of the state ``x`` can be set with `x`
3938
4039
```
41-
k k
42-
─ - ──────────
43-
T 2 ⎛ 1⎞
44-
T ⋅⎜s + ─⎟
45-
⎝ T⎠
40+
k k ks
41+
─ - ─────── = ──────
42+
T sT² + T sT + 1
4643
```
4744
4845
and a state-space realization is given by `ss(-1/T, 1/T, -k/T, k/T)`
4946
where `T` is the time constant of the filter.
5047
A smaller `T` leads to a more ideal approximation of the derivative.
5148
49+
Initial value of the state ``x`` can be set with `x`.
50+
5251
# Parameters:
5352
5453
- `k`: Gain
55-
- `T`: [s] Time constants (T>0 required; T=0 is ideal derivative block)
54+
- `T`: [s] Time constant (T>0 required; T=0 is ideal derivative block)
5655
5756
# Unknowns:
5857

0 commit comments

Comments
 (0)