File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -644,8 +644,9 @@ def dcgain(sys):
644644 Returns
645645 -------
646646 gain : ndarray
647- The zero-frequency gain, or np.inf if the system has a pole at the
648- origin, np.nan if there is a pole/zero cancellation at the origin.
647+ The zero-frequency gain, or (inf + nanj) if the system has a pole at
648+ the origin, (nan + nanj) if there is a pole/zero cancellation at the
649+ origin.
649650
650651 """
651652 return sys .dcgain ()
Original file line number Diff line number Diff line change @@ -1219,9 +1219,10 @@ def dcgain(self, warn_infinite=False):
12191219 Returns
12201220 -------
12211221 gain : ndarray
1222- An array of shape (outputs,inputs); the array will either
1223- be the zero-frequency (or DC) gain, or, if the frequency
1224- response is singular, the array will be filled with np.inf.
1222+ An array of shape (outputs,inputs); the array will either be the
1223+ zero-frequency (or DC) gain, or, if the frequency response is
1224+ singular, the array will be filled with (inf + nanj).
1225+
12251226 """
12261227 return self (0 , warn_infinite = warn_infinite ) if self .isctime () \
12271228 else self (1 , warn_infinite = warn_infinite )
Original file line number Diff line number Diff line change 2121 rss , ss , tf2ss , _statesp_defaults )
2222from control .tests .conftest import ismatarrayout , slycotonly
2323from control .xferfcn import TransferFunction , ss2tf
24- from control .exception import ControlSlycot
2524
2625from .conftest import editsdefaults
2726
You can’t perform that action at this time.
0 commit comments