-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Eq(RootOf(), y) evaluates as False #15920
Comments
This is where it becomes false: sympy/sympy/polys/rootoftools.py Lines 964 to 965 in 27f2f10
As I teach digital design at the moment, I cannot help thinking that the if-clause is equivalent to: |
@oscarbenjamin instead of |
The result should be |
Not sure if I understand the questions, but if I do: most solutions are merged. Sometimes the solutions are too focused (like making sure that only this particular polynomial works correctly), but general solutions not breaking anything else are more or less guaranteed to be merged. For this particular problem there is an ongoing PR which seems to progress so there may be better ones to spend effort. |
Without knowing the details in your case, it is quite common that issues are fixed in a very specific way and therefore not merged. Where that line is drawn is hard to in general. On one hand one can think that it is better to have a very specific fix than none and that someone else will fix it later. However, that rarely happens. It takes a few attempts to get to know the code base and provide a good fix, so keep going! Personally, I have spent quite some time to improve the code quality without really adding any new functionality. In that way one gets to see lots of code and know Sympy a little bit better. There are still many things to clean up and improve from a coding perspective. |
@XtremeGood This issue is not the right place to discuss this (although I don't know what is the right place) but I will say this here: I think that your work in #15694 will get merged. Currently the code you wrote is in the first commit of #15992 as you can see here: https://github.com/sympy/sympy/pull/15992/commits |
Actually it looks to me like #15923 has stalled. The proper fix is probably as described in this comment although it would need more tests to see that it does the right thing in different cases. |
Creating an Eq with a
RootOf
evaluates as False.Since
y
is Symbol there is no way to know that it isn't equal tor
so this should do the same asThe text was updated successfully, but these errors were encountered: