Is this a known issue? I see it on 0.7.0-git too. -- Ben
Python 2.5.5 console for SymPy 0.6.6
These commands were executed:
>>> from __future__ import division
>>> from sympy import *
>>> x, y, z = symbols('xyz')
>>> k, m, n = symbols('kmn', integer=True)
>>> f, g, h = map(Function, 'fgh')
Documentation can be found at http://sympy.org/
In [1]: factor( (1 - x**2 - y**2 + x**2 * y**2)**(1/2) )
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (33, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (649, 0))
---------------------------------------------------------------------------
PolynomialError Traceback (most recent call
last)
/tmp/<ipython console> in <module>()
/usr/lib/pymodules/python2.5/sympy/polys/factortools.pyc in factor(f,
*symbols, **flags)
78 return
f
79
---> 80 coeff, factors = poly_factors(f, *symbols,
**flags)
81
82 result = 1 # XXX: don't include coeff in the leading
factor
/usr/lib/pymodules/python2.5/sympy/polys/factortools.pyc in
poly_factors(f, *symbols, **flags)
18
"""
19 if not isinstance(f,
Poly):
---> 20 f = Poly(f,
*symbols)
21 elif
symbols:
22 raise SymbolsError("Redundant symbols were
given")
/usr/lib/pymodules/python2.5/sympy/polys/polynomial.pyc in
__new__(cls, poly, *symbols, **flags)
452 terms = Poly._permute(poly,
*symbols)
453
else:
--> 454 terms = Poly._decompose(poly,
*symbols)
455
456 if
terms:
/usr/lib/pymodules/python2.5/sympy/polys/polynomial.pyc in
_decompose(poly, *symbols)
596
continue
597
--> 598 raise PolynomialError("Can't decompose
%s" % factor)
599
else:
600 coeff *=
factor
PolynomialError: Can't decompose (1 - x**2 - y**2 + x**2*y**2)**0.5
--
You received this message because you are subscribed to the Google Groups
"sympy" 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?hl=en.