Re: [sage-devel] Exception in Kquo.=Kyx.quotient([x^2+x+1]): Can only reduce polynomials over fields.

2024-06-17 Thread David Roe
This seems to work, though I don't know exactly what you want to do with it. sage: K. = ZZ[] sage: n=13*random_prime(2**50) sage: f=x^2+x+1 sage: Kquo = K.quo(K.ideal(n,f)) sage: Kquo Quotient of Multivariate Polynomial Ring in x, y over Integer Ring by the ideal (10233078999195559, x^2 + x + 1) s

[sage-devel] Exception in Kquo.=Kyx.quotient([x^2+x+1]): Can only reduce polynomials over fields.

2024-06-17 Thread Georgi Guninski
This hurts me, so workaround is welcome. n=13*random_prime(2**20);Kyx.=Integers(n)[];f=x^2+x+1;Kquo.=Kyx.quotient(f);Kquo #pass n=13*random_prime(2**50);Kyx.=Integers(n)[];f=x^2+x+1;Kquo.=Kyx.quotient(f);Kquo TypeError: Can only reduce polynomials over fields. -- You received this message becau