-
Notifications
You must be signed in to change notification settings - Fork 67
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
Rational with symbol as numerator not working? #302
Comments
I always thought |
Oh great, thats good to know! |
Give this works in |
Changing symengine.py/symengine/lib/symengine_wrapper.pyx Line 1592 in 740b26f
_sympify(p)/q should work.
|
@isuruf should we submit a PR? |
Sure. If someone can send a PR, I'll review. |
@eric-wieser do you want to send a PR for this? |
Hello,
I'm testing out the library and tried to create a rational with a symbol as the numerator:
However, when I try this, I get the following error:
II noticed in this issue that
evalf
for rationals with symbols has been excluded and thatthe error above runsevalf
.So is something like
x/1
intentionally restricted from this library?However, I'm able to create a rational if the symbol is the denominator:
The text was updated successfully, but these errors were encountered: