Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1897 by [email protected]: solve and Real
http://code.google.com/p/sympy/issues/detail?id=1897

solve has some problems with Real in current master branch.

example:
f = Rational(2,3)+Rational(345/21)*x+Rational(2394/13)*x**2
solve(f,x)
[-221/55062 - I*10926851**(1/2)/55062, -221/55062 + I*10926851**
(1/2)/55062]
solve(f.evalf(),x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy/solvers/solvers.py", line 235, in solve
    result = roots(poly, cubics=True, quartics=True).keys()
  File "sympy/polys/polyroots.py", line 328, in roots
    f, x = f.to_field(), f.gen
  File "xxxxx/sympy/polys/polytools.py", line 773, in to_field
    result = f.rep.to_field()
  File "xxxxx/sympy/polys/polyclasses.py", line 1153, in to_field
    return f.convert(f.dom.get_field())
  File "/xxxx/sympy/polys/algebratools.py", line 1188, in get_field
    raise DomainError('there is no field associated with %s' % self)
sympy.polys.polyerrors.DomainError: there is no field associated with RR



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
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.

Reply via email to