-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Closed
Copy link
Labels
Milestone
Description
I'm trying to solve equation e^{-x-x^2}=0, which does not have roots in real numbers. In sympy1.4 I get an empty list of solutions, as expected. In current sympy1.6.dev I have an error.
Python 2.7.15 (default, Jul 7 2018, 02:08:11)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import *
>>> import sympy
>>> print(sympy.__version__)
1.6.dev
>>> x = symbols('x', real=True)
>>> solve(exp(-x - x ** 2), x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/user/soft/sympy/sympy/solvers/solvers.py", line 1198, in solve
solution = _solve(f[0], *symbols, **flags)
File "/Users/user/soft/sympy/sympy/solvers/solvers.py", line 1772, in _solve
raise NotImplementedError('\n'.join([msg, not_impl_msg % f]))
NotImplementedError: multiple generators [exp(-x), exp(-x**2)]
No algorithms are implemented to solve equation exp(-x**2 - x)
At the same time, similar equation e^{x+x^2} is solved (no roots, as expected):
>>> solve(exp(x + x**2), x)
[]