Comment #1 on issue 1868 by ondrej.certik: solve(floating point, x) stopped working
http://code.google.com/p/sympy/issues/detail?id=1868

Now it does:

In [1]: EQN1 = -12.0* 12.0*(2*sqrt(3.0) + 9.0) + (78.0 + 24.0*sqrt(3.0) )*x**2 -
3.0*sqrt(2.0) * x**3 - x**4

In [2]: solve(EQN1, x)
---------------------------------------------------------------------------
DomainError                               Traceback (most recent call last)

/home/ondrej/repos/sympy/<ipython console> in <module>()

/home/ondrej/repos/sympy/sympy/solvers/solvers.py in solve(f, *symbols, **flags)
    237             if poly.degree > 2:
    238                 flags['simplified'] = flags.get('simplified', False)
--> 239             result = roots(poly, cubics=True, quartics=True).keys()
    240
    241         elif strategy == GS_RATIONAL:

/home/ondrej/repos/sympy/sympy/polys/polyroots.py in roots(f, *gens, **flags)
    326             raise PolynomialError('multivariate polynomials are not
supported')
    327
--> 328         f, x = f.to_field(), f.gen
    329
    330     def _update_dict(result, root, k):

/home/ondrej/repos/sympy/sympy/polys/polytools.py in to_field(f)
    771         """Make the ground domain a field. """
    772         try:
--> 773             result = f.rep.to_field()
    774         except AttributeError: # pragma: no cover
    775             raise OperationNotSupported(f, 'to_field')

/home/ondrej/repos/sympy/sympy/polys/polyclasses.py in to_field(f)
   1151     def to_field(f):
   1152         """Make the ground domain a field. """
-> 1153         return f.convert(f.dom.get_field())
   1154
   1155     def convert(f, dom):

/home/ondrej/repos/sympy/sympy/polys/algebratools.py in get_field(self)
   1186     def get_field(self):
   1187         """Returns a field associated with `self`. """
-> 1188 raise DomainError('there is no field associated with %s' % self)
   1189
   1190     def get_exact(self):

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