I two multivariate polynomials, 'num' and 'denom' such that denom divides num. But I have not been able to get Sagemath to simplify the quotient num/denom.
Sample code is below. The workbook and the two polynomials are available at https://cocalc.com/share/513993d46f58cd3c1c6c6b22d60962e425fecad2/polynomial_division.ipynb?viewer=share https://cocalc.com/share/6884a274c847cbf4780bf636290777ad5e710828/denom.sobj?viewer=share https://cocalc.com/share/d8904075cf0e67344ac25f47edfa8d38de104379/num.sobj?viewer=share
dR.<d1,d2,d3,d4,d12,d13,d14,d23,d24,d34,d123,d124,d134,d234,d1234> \ = PolynomialRing(ZZ,15,order='lex')
denom=load('denom'); num=load('num')
denom.divides(num)
True
num.reduce(Ideal([denom]))
0
F=num/denom
F.denominator()/denom
1
F.reduce()
F.denominator()/denom
1
num.number_of_terms()
3197
denom.number_of_terms()
64
num.degree()
24