This at least documented:

sage: R.<x>=ZZ[]
sage: f = x^3+x+1
sage: f.mod?
...
       When little is implemented about a given ring, then mod may
return
       simply return f.  For example, reduction is not implemented for
       ZZ[x] yet. (TODO!)

          sage: R.<x> = PolynomialRing(ZZ)
sage: f = x^3 + x + 1 sage:
          f.mod(x + 1) x^3 + x + 1


On Apr 28, 2:03 pm, Michael Rybalkin <michael.rybal...@gmail.com>
wrote:
> 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 sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/sage-support
> URL:http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to