How to perform modulus in polynomial rings..

asked 2019-05-29 19:17:28 +0200

Shouvik gravatar image

updated 2019-05-29 20:33:53 +0200

FrédéricC gravatar image

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 = 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.

edit retag flag offensive close merge delete

Comments

f and g are not polynomials but rational functions (with denominators), so what do you mean? What quotient and remainder do you expect?

rburing gravatar imagerburing ( 2019-05-29 22:56:10 +0200 )edit