How might I build a function that alters an input expression? #21541
-
I'm brand new to sympy and to computer algebra systems. I'd like to create a function that can take in an expanded expression and return an expression in which powers are replaced by 1. For example, if the function is named
Is it possible to do this? If so, where might I start in the documentation in order to learn how to do it? Tips/advice welcome! |
Beta Was this translation helpful? Give feedback.
Answered by
oscarbenjamin
May 28, 2021
Replies: 1 comment 2 replies
-
I suggest reading this as a starting point: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mattroos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest reading this as a starting point:
https://docs.sympy.org/latest/tutorial/manipulation.html