@@ -386,7 +386,7 @@ def horner(self, s):
386386 return array (resp )
387387
388388 # Method for generating the frequency response of the system
389- def freqresp (self , omega_s ):
389+ def freqresp (self , omega ):
390390 """Evaluate the system's transfer func. at a list of freqs, omega.
391391
392392 mag, phase, omega = self.freqresp(omega)
@@ -402,7 +402,7 @@ def freqresp(self, omega_s):
402402
403403 Inputs:
404404 ------
405- omega_s : A list of frequencies in radians/sec at which the system
405+ omega : A list of frequencies in radians/sec at which the system
406406 should be evaluated. The list can be either a python list
407407 or a numpy array and will be sorted before evaluation.
408408
@@ -414,30 +414,30 @@ def freqresp(self, omega_s):
414414 phase: The wrapped phase in radians of the system frequency
415415 response.
416416
417- omega_s : The list of sorted frequencies at which the response
417+ omega : The list of sorted frequencies at which the response
418418 was evaluated.
419419
420420 """
421421
422422 # In case omega is passed in as a list, rather than a proper array.
423- omega_s = np .asarray (omega_s )
423+ omega = np .asarray (omega )
424424
425- numFreqs = len (omega_s )
425+ numFreqs = len (omega )
426426 Gfrf = np .empty ((self .outputs , self .inputs , numFreqs ),
427427 dtype = np .complex128 )
428428
429429 # Sort frequency and calculate complex frequencies on either imaginary
430430 # axis (continuous time) or unit circle (discrete time).
431- omega_s .sort ()
431+ omega .sort ()
432432 if isdtime (self , strict = True ):
433433 dt = timebase (self )
434- cmplx_freqs = exp (1.j * omega_s * dt )
435- if ((omega_s * dt ).any () > pi ):
434+ cmplx_freqs = exp (1.j * omega * dt )
435+ if ((omega * dt ).any () > pi ):
436436 warn_message = ("evalfr: frequency evaluation"
437437 " above Nyquist frequency" )
438438 warnings .warn (warn_message )
439439 else :
440- cmplx_freqs = omega_s * 1.j
440+ cmplx_freqs = omega * 1.j
441441
442442 # Do the frequency response evaluation. Use TB05AD from Slycot
443443 # if it's available, otherwise use the built-in horners function.
@@ -476,8 +476,8 @@ def freqresp(self, omega_s):
476476 for kk , cmplx_freqs_kk in enumerate (cmplx_freqs ):
477477 Gfrf [:, :, kk ] = self .horner (cmplx_freqs_kk )
478478
479- # mag phase omega_s
480- return np .abs (Gfrf ), np .angle (Gfrf ), omega_s
479+ # mag phase omega
480+ return np .abs (Gfrf ), np .angle (Gfrf ), omega
481481
482482 # Compute poles and zeros
483483 def pole (self ):
0 commit comments