#7950: factoring broken in 0 variable polynomial ring
-----------------------------------+----------------------------------------
Reporter: burcin | Owner: malb
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.1
Component: commutative algebra | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
-----------------------------------+----------------------------------------
{{{
sage: P = PolynomialRing(QQ,0,'')
sage: P
Multivariate Polynomial Ring in no variables over Rational Field
sage: t = P.random_element()
sage: t.factor()
---------------------------------------------------------------------------
IndexError Traceback (most recent call
last)
/home/burcin/.sage/temp/karr/24426/_home_burcin__sage_init_sage_0.py in
<module>()
/home/burcin/sage/sage-4.3.alpha0/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:
/home/burcin/sage/sage-4.3.alpha0/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
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7950>
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.