This function returns a divisor where all entries with coefficient zero are removed.
i1 : R = QQ[x,y,z]; |
i2 : D = divisor({1,0,-2}, {ideal(x), ideal(y), ideal(z)}) o2 = Div(x) + 0*Div(y) + -2*Div(z) o2 : WeilDivisor on R |
i3 : cleanSupport(D) o3 = Div(x) + -2*Div(z) o3 : WeilDivisor on R |
The object cleanSupport is a method function.