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):
644
644
Returns
645
645
-------
646
646
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.
649
650
650
651
"""
651
652
return sys .dcgain ()
Original file line number Diff line number Diff line change @@ -1219,9 +1219,10 @@ def dcgain(self, warn_infinite=False):
1219
1219
Returns
1220
1220
-------
1221
1221
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
+
1225
1226
"""
1226
1227
return self (0 , warn_infinite = warn_infinite ) if self .isctime () \
1227
1228
else self (1 , warn_infinite = warn_infinite )
Original file line number Diff line number Diff line change 21
21
rss , ss , tf2ss , _statesp_defaults )
22
22
from control .tests .conftest import ismatarrayout , slycotonly
23
23
from control .xferfcn import TransferFunction , ss2tf
24
- from control .exception import ControlSlycot
25
24
26
25
from .conftest import editsdefaults
27
26
You can’t perform that action at this time.
0 commit comments