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
How to substitute certain function? #188
Comments
What you can do right now is recursively call |
Thank you for your reply. |
You can use |
Thank you! |
Hi zhaoli-IHEP, Thank's a lot. |
Hi, in fact we did not make generic function to handle this problem. What we do is to use |
For example
An alternative approach I can imagine is to iterate over the expression tree.
So I found there are functions "get_name" and "get_args".
However, it is not very clear for "get_name" to show the operation + and *
If neither above works, it seems I have to turn the expression into String and using regex to implement the substitution, but this lose the point to use SymEngine.
The text was updated successfully, but these errors were encountered: