I faced with a problem with polynomial mod
This is example from manual: mod?
sage: R.<x> = QQ['x'];
sage: f = x^3 + x + 1
sage: f.mod(x + 1)
Result is -1
But changing from field QQ to ring ZZ causes mod to do nothing:
sage: R.<x> = ZZ['x'];
sage: f = x^3 + x + 1
sage: f.mod(x + 1)
Result is x^3 + x + 1
Mod function doesn't do anything. And is doesn't work for polynomials
over IntegerModRing also and for symbolic polynomial ring.
sage: var('x')
sage: f = x^3 + x + 1
sage: f.mod(x + 1)
Result is x^3 + x + 1
--
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-support
URL: http://www.sagemath.org