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
Fix exp(x + num)/exp(x) not evaluating #1828
Conversation
I am curious about the rationale for doing this auto-simplification. To me it feels like a special case. Should also |
|
I'm sorry @isuruf, it was sympy that had the inconsistency I was referring to. I got my I guess we would still have the following inconsistency: symengine.pi**2.0
Out[1]: pi**2.0
symengine.E**2.0
Out[2]: 7.38905609893065 Are we sure that we want to do the auto-evaluation in the second example? Then we loose the option of evaluating the expression to a higher precision. Even if |
We should evaluate |
Ok, this makes sense. Also using symengine.E**symengine.RealMPFR(1.0, prec=200)
Out[1]: 2.7182818284590452353602874713526624977572470936999595749670 Then there are other cases we should auto-evaluate like: symengine.E*2.0
Out[2]: 2.0*E I can open an issue to remember these. |
hopefully avoids clang-format segfaults
No description provided.