Skip to content

Conversation

sawyerbfuller
Copy link
Contributor

The damp command was assuming a cont-time system when printing out pole locations (but the return value was correct). Fixed, along with making a few docstring improvements.

@sawyerbfuller
Copy link
Contributor Author

Example:

sysd = ct.zpk([], [-1.1, 1+1j, 1-1j], 1, True)
ct.damp(sysd)

Old (pole at -1.1 has the wrong frequency, table is hard to read):

_____Eigenvalue______ Damping___ Frequency_
         1        +1j    -0.4037     0.8585
         1        -1j    -0.4037     0.8585
      -1.1                     1        1.1

New:

    Eigenvalue (pole)       Damping     Frequency
         1        +1j       -0.4037        0.8585
         1        -1j       -0.4037        0.8585
                 -1.1             1         3.143

@murrayrm
Copy link
Member

LGTM.

@murrayrm murrayrm merged commit 1b84d80 into python-control:main May 28, 2023
@murrayrm murrayrm added this to the 0.9.4 milestone Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants