Title: tf2ss() returns unstable system · Issue #935 · python-control/python-control · GitHub
Open Graph Title: tf2ss() returns unstable system · Issue #935 · python-control/python-control
X Title: tf2ss() returns unstable system · Issue #935 · python-control/python-control
Description: I have the following transfer function: _sys1.den=[[array([9.43513863e-11, 6.05312352e-08, 7.92752628e-07, 5.23764693e-06, 1.82502556e-05, 1.24355899e-05, 8.68206174e-06, 2.73818482e-06, 4.29133144e-07, 3.85554417e-08, 1.62631575e-09, 8....
Open Graph Description: I have the following transfer function: _sys1.den=[[array([9.43513863e-11, 6.05312352e-08, 7.92752628e-07, 5.23764693e-06, 1.82502556e-05, 1.24355899e-05, 8.68206174e-06, 2.73818482e-06, 4.29133144...
X Description: I have the following transfer function: _sys1.den=[[array([9.43513863e-11, 6.05312352e-08, 7.92752628e-07, 5.23764693e-06, 1.82502556e-05, 1.24355899e-05, 8.68206174e-06, 2.73818482e-06, 4.29133144...
Opengraph URL: https://github.com/python-control/python-control/issues/935
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tf2ss() returns unstable system","articleBody":"I have the following transfer function:\r\n\r\n`_sys1.den=[[array([9.43513863e-11, 6.05312352e-08, 7.92752628e-07, 5.23764693e-06,\r\n 1.82502556e-05, 1.24355899e-05, 8.68206174e-06, 2.73818482e-06,\r\n 4.29133144e-07, 3.85554417e-08, 1.62631575e-09, 8.41098151e-12,\r\n 9.85278302e-15, 4.07646645e-18, 5.55496497e-22, 3.06560494e-26,\r\n 5.98908988e-31])]]`\r\n\r\n'_sys1.num=[[array([9.94004350e-13, 2.67602795e-11, 2.31058712e-10, 1.15119493e-09,\r\n 5.04635153e-09, 1.34066064e-08, 2.11938725e-08, 2.39940325e-08,\r\n 2.05897777e-08, 1.17092854e-08, 4.71236875e-09, 1.19497537e-09,\r\n 1.90815347e-10, 1.00655454e-11, 1.47388887e-13, 8.40314881e-16,\r\n 1.67195685e-18])]]'\r\n\r\nasking for poles:\r\n\r\n`_sys1.poles()=array([-6.28318525e+02+0.00000000e+00j, -6.28318531e+00+0.00000000e+00j,\r\n -3.14159265e+00+5.44139809e+00j, -3.14159265e+00-5.44139809e+00j,\r\n -1.19380521e-01+5.84842723e-01j, -1.19380521e-01-5.84842723e-01j,\r\n -1.88495559e-01+0.00000000e+00j, -6.63225116e-02+9.92624461e-02j,\r\n -6.63225116e-02-9.92624461e-02j, -1.00530965e-01+0.00000000e+00j,\r\n -4.32233973e-03+0.00000000e+00j, -6.28318476e-04+0.00000000e+00j,\r\n -6.28318592e-04+0.00000000e+00j, -6.29820167e-05+2.60763321e-07j,\r\n -6.29820167e-05-2.60763321e-07j, -6.25315230e-05+0.00000000e+00j])`\r\n\r\nAll negative. System is stable. But then when converting _sys1 to state space using tf2ss() returns a system which have positive poles (unstable). I am using Slycot.\r\n\r\nI also repeated the same conversion but using scipy and it gives me a stable state space as a result.\r\n\r\n\r\npython-control version: '0.9.3.post2'\r\n","author":{"url":"https://github.com/pooyasf","@type":"Person","name":"pooyasf"},"datePublished":"2023-10-17T13:41:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/935/python-control/issues/935"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c0817e1d-31b2-ff5d-23cc-5ca857749037 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82C0:3595D1:B73C1D:F55430:69795E96 |
| html-safe-nonce | d281f170df5eb0d5396e3871b40518160dea51dd1c17a62b15dd8224380dddee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkMwOjM1OTVEMTpCNzNDMUQ6RjU1NDMwOjY5Nzk1RTk2IiwidmlzaXRvcl9pZCI6IjU3MjkwNDU4OTg3MTM3Mzk3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6b7fdb0ef7f456c37986b885751f39a39b809e62ca143e3a0fab64d599e00e4d |
| hovercard-subject-tag | issue:1947466987 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-control/python-control/935/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0e6104f44463d4b6b2327b142a285cc320206077e985c041d8dd11d80ea006a/python-control/python-control/issues/935 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0e6104f44463d4b6b2327b142a285cc320206077e985c041d8dd11d80ea006a/python-control/python-control/issues/935 |
| og:image:alt | I have the following transfer function: _sys1.den=[[array([9.43513863e-11, 6.05312352e-08, 7.92752628e-07, 5.23764693e-06, 1.82502556e-05, 1.24355899e-05, 8.68206174e-06, 2.73818482e-06, 4.29133144... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pooyasf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a8bf5f945fd86e846085fae394d6ac589cd2b86e05b57ef553a6b80c16b1a62 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-control/python-control git https://github.com/python-control/python-control.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 22791752 |
| octolytics-dimension-repository_nwo | python-control/python-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22791752 |
| octolytics-dimension-repository_network_root_nwo | python-control/python-control |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9288b06021ef9d084f8b8be8a0cb129d8dc9b93a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width