Skip to content

Commit 8e01958

Browse files
committed
document the 's' and 'z' constants for TransferFunction
1 parent 2042231 commit 8e01958

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

control/xferfcn.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ class TransferFunction(LTI):
9090
are combined. If 'dt' is set to True, the system will be treated as a
9191
discrete time system with unspecified sampling time.
9292
93+
The TransferFunction class defines two constants ``s`` and ``z`` that
94+
represent the differentiation and delay operators in continuous and
95+
discrete time. These can be used to create variables that allow algebraic
96+
creation of transfer functions. For example,
97+
98+
>>> s = TransferFunction.s
99+
>>> G = (s + 1)/(s**2 + 2*s + 1)
100+
93101
"""
94102
def __init__(self, *args):
95103
"""TransferFunction(num, den[, dt])

0 commit comments

Comments
 (0)