-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Feedback will now act like TransferFunction in control. #26293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback will now act like TransferFunction in control. #26293
Conversation
✅ Hi, I am the SymPy bot. I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.13. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
@moorepants, Sir, can you please review this PR? I've made sure that everything is correct here. |
It would be good to have a test showing that you can combine with another transfer function (like putting two a feedback in series with a tf) and show that is works in regular assembly operations. |
Sir, Are you talking about this? |
…fied to_expr() implementation.
I was thinking just |
I can see that num and den property are not available in I've just used |
0ec9f42
to
e356578
Compare
e356578
to
d3ecdcf
Compare
If making Feedback work as a transfer function means that other things have to be fixed too, then we need to do that. This PR doesn't address the primary issue if you can't use Feedback as a transfer function. |
My original example does seem to work with this PR:
which is nice. It is also a useful test case for the unit tests. So I guess we can merge this without making Series and Parallel act like a transfer function also. It can be solved separately. |
Thank you for your time. I will also write a unit test for this. |
d0d951c
to
e1d59db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great reviews and work here @abhiphile. I'll wait for Jason to merge this when he feels appropriate. Thanks !
LGTM, nice work! |
Failing test here doesn't seem to be related. Thanks for your contributions, merging ! |
That particular pypy test just fails randomly since some recent pypy release (a few months ago?). I can't reproduce the failure outside of CI so I haven't opened a PyPy issue about it. The problem is something to do with pytest's assertion rewriting which presumably messes with PyPy's AST. |
Sorry, mentioned "doesn't" and "unrelated" together by mistake. Did not mean to cause a confusion 😄 |
References to other Issues or PRs
Fixes Discussion in #26228
Fixes Issue #26161
Brief description of what is fixed or changed
Other comments
Release Notes