We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! This code
import sympy as sym sym.init_printing() n = sym.symbols('n', integer=True) a = sym.I**n b = sym.E**(sym.I * sym.pi / 2 * n) sym.simplify(a - b)
outputs
.
However, I would expect it to do the simplification and return instead.
Note that when is a constant instead of a symbol, it works:
import sympy as sym sym.init_printing() n = 2 a = sym.I**n b = sym.E**(sym.I * sym.pi / 2 * n) sym.simplify(a - b)
The text was updated successfully, but these errors were encountered:
A workaround could be to use a.rewrite(exp) - b.
a.rewrite(exp) - b
Sorry, something went wrong.
No branches or pull requests
Hi! This code
outputs
.
However, I would expect it to do the simplification and return instead.
Note that when is a constant instead of a symbol, it works:
outputs
.
The text was updated successfully, but these errors were encountered: