Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error coercing multivariate polynomial rings with one variable into composite integer rings #1245

Closed
ncalexan mannequin opened this issue Nov 22, 2007 · 4 comments
Closed

Comments

@ncalexan
Copy link
Mannequin

ncalexan mannequin commented Nov 22, 2007

This works:

sage: PolynomialRing(ZZ, 2, 'x').gen() * Mod(1, 9)
x0
sage: PolynomialRing(ZZ, 2, 'x').gen() * Mod(1, 3)
x0

This doesn't:

sage: PolynomialRing(ZZ, 1, 'x').gen() * Mod(1, 3)
x
sage: PolynomialRing(ZZ, 1, 'x').gen() * Mod(1, 9)
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call last)

/Users/ncalexan/<ipython console> in <module>()

/Users/ncalexan/element.pyx in sage.structure.element.RingElement.__mul__()

/Users/ncalexan/coerce.pyx in sage.structure.coerce.CoercionModel_cache_maps.bin_op_c()

<type 'exceptions.TypeError'>: unsupported operand parent(s) for '*': 'Multivariate Polynomial Ring in x over Integer Ring' and 'Ring of integers modulo 9'

CC: @robertwb

Component: commutative algebra

Keywords: coercion coerce multivariate univariate composite

Issue created by migration from https://trac.sagemath.org/ticket/1245

@ncalexan ncalexan mannequin added this to the sage-2.10 milestone Nov 22, 2007
@ncalexan ncalexan mannequin assigned williamstein Nov 22, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-2.10, sage-2.9.1 Dec 20, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin assigned malb and unassigned williamstein Dec 20, 2007
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jan 20, 2008

comment:3

This is still a problem with Sage 2.10.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 15, 2008

comment:5

Still an issue with Sage 2.10.2.alpha0.

Cheers,

Michael

@malb
Copy link
Member

malb commented Aug 18, 2008

comment:6

I'm stuck with this bug, I don't know where to look. Robert, can you take a look?

@mwhansen
Copy link
Contributor

comment:7

This has been fixed in at least Sage 3.1.4

sage: sage: PolynomialRing(ZZ, 1, 'x').gen() * Mod(1, 3)
x
sage: sage: PolynomialRing(ZZ, 1, 'x').gen() * Mod(1, 9)
x
sage: _.parent()
Univariate Polynomial Ring in x over Ring of integers modulo 9

@mwhansen mwhansen modified the milestones: sage-3.2.1, sage-3.1.4 Nov 14, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants