Comment #4 on issue 1868 by [email protected]: solve(floating point,
x) stopped working
http://code.google.com/p/sympy/issues/detail?id=1868
Ok, fixed the problem in Issue 1897, but don't that one (Issue 1880, but
with evalf):
from sympy import *
E = Symbol('E')
J = Symbol('J')
F = Symbol('F')
lmbda = Symbol('lambda')
L = Symbol('L')
f = -21601054687500000000*E**8*J**8/L**16 +
508232812500000000*F*lmbda*E**7*J**7/
L**14 - 4269543750000000*E**6*F**2*J**6*lmbda**2/L**12 +
16194716250000*E**5*F**3*J**5*lmbda**3/L**10 -
27633173750*E**4*F**4*J**4*lmbda**4/
L**8 + 14840215*E**3*F**5*J**3*lmbda**5/L**6 +
54794*E**2*F**6*J**2*lmbda**6/
(5*L**4) - 1153*E*J*F**7*lmbda**7/(80*L**2)+ 633*F**8*lmbda**8/160000
print solve(f.evalf(), lmbda)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "xxxxx/sympy/solvers/solvers.py", line 230, in solve
poly = f.as_poly( symbol )
File "xxxxx/sympy/core/basic.py", line 1021, in as_poly
poly = Poly(self, *gens, **args)
File "sympy/polys/polytools.py", line 475, in __new__
result = _init_poly_from_basic(rep, *gens, **args)
File "sympy/polys/polytools.py", line 379, in _init_poly_from_basic
domain, dict_rep = _construct_domain(dict_rep, **args)
File "sympy/polys/polytools.py", line 252, in _construct_domain
result = _construct_composite(rep)
File "sympy/polys/polytools.py", line 220, in _construct_composite
num_coeffs = [ K.dom.from_sympy(c) for c in num_coeffs ]
File "xxxxx/sympy/polys/algebratools.py", line 971, in from_sympy
raise CoercionFailed("expected Integer object, got %s" % a)
sympy.polys.polyerrors.CoercionFailed: expected Integer object, got
0.00395625000000000
--
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.