@@ -55,8 +55,8 @@ def isdtime(self, strict=False):
5555 Parameters
5656 ----------
5757 strict: bool, optional
58- If strict is True, make sure that timebase is not None. Default
59- is False.
58+ If strict is True, make sure that timebase is not None. Default
59+ is False.
6060 """
6161
6262 # If no timebase is given, answer depends on strict flag
@@ -75,8 +75,8 @@ def isctime(self, strict=False):
7575 sys : LTI system
7676 System to be checked
7777 strict: bool, optional
78- If strict is True, make sure that timebase is not None. Default
79- is False.
78+ If strict is True, make sure that timebase is not None. Default
79+ is False.
8080 """
8181 # If no timebase is given, answer depends on strict flag
8282 if self .dt is None :
@@ -421,6 +421,7 @@ def evalfr(sys, x):
421421 return sys .horner (x )[0 ][0 ]
422422 return sys .horner (x )
423423
424+
424425def freqresp (sys , omega ):
425426 """
426427 Frequency response of an LTI system at multiple angular frequencies.
@@ -430,13 +431,20 @@ def freqresp(sys, omega):
430431 sys: StateSpace or TransferFunction
431432 Linear system
432433 omega: array_like
433- List of frequencies
434+ A list of frequencies in radians/sec at which the system should be
435+ evaluated. The list can be either a python list or a numpy array
436+ and will be sorted before evaluation.
434437
435438 Returns
436439 -------
437- mag: ndarray
438- phase: ndarray
439- omega: list, tuple, or ndarray
440+ mag : (self.outputs, self.inputs, len(omega)) ndarray
441+ The magnitude (absolute value, not dB or log10) of the system
442+ frequency response.
443+ phase : (self.outputs, self.inputs, len(omega)) ndarray
444+ The wrapped phase in radians of the system frequency response.
445+ omega : ndarray or list or tuple
446+ The list of sorted frequencies at which the response was
447+ evaluated.
440448
441449 See Also
442450 --------
@@ -472,9 +480,9 @@ def freqresp(sys, omega):
472480 #>>> # frequency response from the 1st input to the 2nd output, for
473481 #>>> # s = 0.1i, i, 10i.
474482 """
475-
476483 return sys .freqresp (omega )
477484
485+
478486def dcgain (sys ):
479487 """Return the zero-frequency (or DC) gain of the given system
480488
0 commit comments