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
TypeError
raised for evalf
containing summations
#21888
Comments
What do you think |
There are old open issues about disallowing non-integer limits for summations. |
In future, we can allow more complex subsets of integers, e.g. Range's with step != 1. Closes sympy/sympy#21888 Closes sympy/sympy#5822
Yeah passing non-integer limits should raise an error which is not the case as of now . Something like |
Is this a needs decision issue now , we can't disallow non-integer limits since many summations can be and should be evaluated by SymPy (eg -Sum(cos(n), (n, x, x + 1/2)).doit() ). Should we raise the |
It's difficult to know what to do in terms of backwards compatibility but I think ideally the limits would be required to be integers (unless infinite). |
raises
TypeError: Invalid comparison of non-real I
The text was updated successfully, but these errors were encountered: