1 | initial version |
I have a loop but not through the coefficents {{{ sage: R.<a,b> = ZZ[] sage: f=(1+a+a^2+a^3)(1+b+b^2+b^3) sage: f.mod([a^ib^(4-i) for i in xrange(5)]) a^3 + a^2b + ab^2 + b^3 + a^2 + a*b + b^2 + a + b + 1 }}}
Vincent
2 | No.2 Revision |
I have a loop but not through the coefficents
{{{
coefficients
sage: R.<a,b> = ZZ[]
sage: f=(1+a+a^2+a^3)(1+b+b^2+b^3)
f=(1+a+a^2+a^3)*(1+b+b^2+b^3)
sage: f.mod([a^ib^(4-i) f.mod([a^i*b^(4-i) for i in xrange(5)])
a^3 + a^2b a^2*b + ab^2 a*b^2 + b^3 + a^2 + a*b + b^2 + a + b + 1
}}}
Vincent
3 | No.3 Revision |
I have a loop but not through the coefficientsterms
sage: R.<a,b> = ZZ[]
sage: f=(1+a+a^2+a^3)*(1+b+b^2+b^3)
sage: f.mod([a^i*b^(4-i) for i in xrange(5)])
a^3 + a^2*b + a*b^2 + b^3 + a^2 + a*b + b^2 + a + b + 1
Vincent