Skip to content

Commit 2580d18

Browse files
committed
add some documentation and notes
1 parent fe8888f commit 2580d18

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

control/statesp.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,13 @@ def ss(*args, **kwargs):
15831583
--------
15841584
tf, ss2tf, tf2ss
15851585
1586+
Notes
1587+
-----
1588+
If a transfer function is passed as the sole positional argument, the
1589+
system will be converted to state space form in the same way as calling
1590+
:func:`~control.tf2ss`. The `method` keyword can be used to select the
1591+
method for conversion.
1592+
15861593
Examples
15871594
--------
15881595
Create a Linear I/O system object from matrices.
@@ -1768,6 +1775,10 @@ def tf2ss(*args, **kwargs):
17681775
name : string, optional
17691776
System name. If unspecified, a generic name <sys[id]> is generated
17701777
with a unique integer id.
1778+
method : str, optional
1779+
Set the method used for computing the result. Current methods are
1780+
'slycot' and 'scipy'. If set to None (default), try 'slycot' first
1781+
and then 'scipy' (SISO only).
17711782
17721783
Raises
17731784
------
@@ -1784,6 +1795,13 @@ def tf2ss(*args, **kwargs):
17841795
tf
17851796
ss2tf
17861797
1798+
Notes
1799+
-----
1800+
The ``slycot`` routine used to convert a transfer function into state
1801+
space form appears to have a bug and in some (rare) instances may not
1802+
return a system with the same poles as the input transfer function.
1803+
For SISO systems, setting ``method=scipy`` can be used as an alternative.
1804+
17871805
Examples
17881806
--------
17891807
>>> num = [[[1., 2.], [3., 4.]], [[5., 6.], [7., 8.]]]

0 commit comments

Comments
 (0)