polynomials over integers modulo...

asked 2026-01-13 15:10:47 +0100

pg261 gravatar image

Just wanted to report a bug: it's impossible to work with polynomials with coefficients in Z/n, at least for n= 2^64:

kk= Zmod(2^64)
n= 2
R= PolynomialRing(kk, [ "x" + str(i+1) for i in range(n) ])
P= R.random_element()

This fails. More generally it's impossible to multiply an element of kk by a generator of R. This is sage 10.6.

edit retag flag offensive close merge delete

Comments

PS from the message error it's clear that a certain "long" integer in the code should be "unsigned long" instead.

pg261 gravatar imagepg261 ( 2026-01-13 15:18:48 +0100 )edit