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
I don't think solve should convert all equations to Poly because it can be slow but at least there should be some checking for this case:
>>> from sympy import * >>> from sympy.abc import x, y >>> solve([x + y, sqrt(2)], [x, y]) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/enojb/current/sympy/sympy/sympy/solvers/solvers.py", line 1099, in solve solution = _solve_system(f, symbols, **flags) File "/Users/enojb/current/sympy/sympy/sympy/solvers/solvers.py", line 1774, in _solve_system subsol = _solve_system(subexpr, subsyms, **flags) File "/Users/enojb/current/sympy/sympy/sympy/solvers/solvers.py", line 1805, in _solve_system poly = g.as_poly(*symbols, extension=True) File "/Users/enojb/current/sympy/sympy/sympy/core/expr.py", line 1109, in as_poly poly = Poly(self, *gens, **args) File "/Users/enojb/current/sympy/sympy/sympy/polys/polytools.py", line 162, in __new__ return cls._from_expr(rep, opt) File "/Users/enojb/current/sympy/sympy/sympy/polys/polytools.py", line 292, in _from_expr return cls._from_dict(rep, opt) File "/Users/enojb/current/sympy/sympy/sympy/polys/polytools.py", line 229, in _from_dict raise GeneratorsNeeded( sympy.polys.polyerrors.GeneratorsNeeded: can't initialize from 'dict' without generators
The text was updated successfully, but these errors were encountered:
Add regression test
3d04054
Closes sympy/sympy#20610
Possible fix for issue sympy#20610:Removed redundant check for is_Num…
b52ebac
…ber instance in solve
This is still present as of SymPy 1.9
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I don't think solve should convert all equations to Poly because it can be slow but at least there should be some checking for this case:
The text was updated successfully, but these errors were encountered: