Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3528 by [email protected]: Can't solve fractional inequalities
http://code.google.com/p/sympy/issues/detail?id=3528
Trying to solve:
solve((x-3)*(x-2)<0,x)
And(2 < re(x), im(x) == 0, re(x) < 3)
Works fine, but
solve((x-3)/(x-2)<0,x)
raise errors:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\sympy\solvers\solvers.py", line 634,
in solve
symbols=symbols)
File "C:\Python27\lib\site-packages\sympy\solvers\inequalities.py", line
345, in reduce_inequalities
return _solve_inequality(inequalities[0], symbols[0])
File "C:\Python27\lib\site-packages\sympy\solvers\inequalities.py", line
312, in _solve_inequality
p = Poly(expr, s)
File "C:\Python27\lib\site-packages\sympy\polys\polytools.py", line 96,
in __new__
return cls._from_expr(rep, opt)
File "C:\Python27\lib\site-packages\sympy\polys\polytools.py", line 202,
in _from_expr
rep, opt = _dict_from_expr(rep, opt)
File "C:\Python27\lib\site-packages\sympy\polys\polyutils.py", line 314,
in _dict_from_expr
rep, gens = _dict_from_expr_if_gens(expr, opt)
File "C:\Python27\lib\site-packages\sympy\polys\polyutils.py", line 260,
in _dict_from_expr_if_gens
(poly,), gens = _parallel_dict_from_expr_if_gens((expr,), opt)
File "C:\Python27\lib\site-packages\sympy\polys\polyutils.py", line 167,
in _parallel_dict_from_expr_if_gens
raise PolynomialError("%s contains an element of the generators set" %
factor)
sympy.polys.polyerrors.PolynomialError: 1/(x - 2) contains an element of
the generators set
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.