#8207: Factoring a constant generic multivariate polynomial broken
-----------------------+----------------------------------------------------
Reporter: wjp | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.3
Component: algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
The following raises an {{{IndexError}}}:
{{{
sage: R.<x,y> = CC[]
sage: R(1).factor()
---------------------------------------------------------------------------
IndexError Traceback (most recent call
last)
/data/wpalenst/sage/sage-4.3.1/<ipython console> in <module>()
/data/wpalenst/sage/sage-4.3.1/local/lib/python2.6/site-
packages/sage/rings/polynomial/multi_polynomial_element.pyc in
factor(self, proof)
1422 # try to use univariate factoring first
1423 try:
-> 1424 F = self.univariate_polynomial().factor()
1425 return Factorization([(R(f),m) for f,m in F],
unit=F.unit())
1426 except TypeError:
/data/wpalenst/sage/sage-4.3.1/local/lib/python2.6/site-
packages/sage/rings/polynomial/multi_polynomial_element.pyc in
univariate_polynomial(self, R)
1055 #construct ring if None
1056 if R is None:
-> 1057 R = self.base_ring()[str(self.variables()[0])]
1058
1059 monomial_coefficients =
self._MPolynomial_element__element.dict()
IndexError: tuple index out of range
}}}
The call {{{R(1).univariate_polynomial()}}} seems to fail.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8207>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.