#7951: coercion problem with 0 variable polynomials
--------------------------------+-------------------------------------------
Reporter: burcin | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.1
Component: basic arithmetic | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
--------------------------------+-------------------------------------------
{{{
sage: R.<x,y> = QQ[]
sage: P = PolynomialRing(QQ,0,'')
sage: P
Multivariate Polynomial Ring in no variables over Rational Field
sage: t = P.random_element()
sage: t
-1
sage: t*x
---------------------------------------------------------------------------
TypeError 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/structure/element.so in
sage.structure.element.RingElement.__mul__
(sage/structure/element.c:10153)()
/home/burcin/sage/sage-4.3.alpha0/local/lib/python2.6/site-
packages/sage/structure/coerce.so in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(sage/structure/coerce.c:6988)()
TypeError: unsupported operand parent(s) for '*': 'Multivariate Polynomial
Ring in no variables over Rational Field' and 'Multivariate Polynomial
Ring in x, y over Rational Field'
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7951>
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.