-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implement eq1.subs(eq2)
#9
Comments
I have thought about this some and think it should be done. I have not dug into what I would have to override in the subs module to make it work. I think it may be as simple as checking for equations and parsing them before calling the normal subs modules. This is not completely straightforward in an external package as it requires overriding things defined in the It is on my radar, but relatively low priority compared to getting more tests built so this package can get to the stable stage and continuing to try to get a positive consensus on embedding this code in sympy. If you or someone else can get this working, I would love to get a pull-request. |
I might give it a try next week! :) |
Thank you. |
I gave it a quick try, and it seems that the following could work:
While I'd really love the possibility of simply writing Currently,
Do we really want to modify the signature to implement this new behavior? (I vote for yes :) ) Having played with the module on a few examples, I noticed that often I need to substitute multiple equations into a target equation. An alternative would be to create a function Maybe we can implement both approaches... |
Would it be possible to overwrite the
subs
method so that it can accept a single argument, specifically an object of typeEquation
? So, the left hand side represents the expression to substitute, the right hand side represents the new value.The text was updated successfully, but these errors were encountered: