Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to perform modulus in polynomial rings..

The following code i wrote in cocalc.com in sage sheet x = PolynomialRing(RationalField(), 'x').gen() a = PolynomialRing(RationalField(), 'a').gen() b = PolynomialRing(RationalField(), 'b').gen() f =a* x/(x+1) g = bx*3/(x+1) g1 = f%g print g1 It is giving error. My main objective is to find quotient and remainder.Thanks in advance.

How to perform modulus in polynomial rings..

The following code i wrote in cocalc.com in sage sheet sheet

x = PolynomialRing(RationalField(), 'x').gen()
a = PolynomialRing(RationalField(), 'a').gen()
b = PolynomialRing(RationalField(), 'b').gen()
f =a* x/(x+1)
g = bx*3/(x+1)
b*x**3/(x+1)
g1 = f%g
print g1

It is giving error. My main objective is to find quotient and remainder.Thanks in advance.