next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Divisor :: divPlus

divPlus -- Get the positive part of a given divisor

Synopsis

Description

Return the positive part of a divisor
i1 : R = QQ[x, y, u, v] / ideal(x * y - u * v)

o1 = R

o1 : QuotientRing
i2 : D = divisor({1, -2, 3, -4}, {ideal(x, u), ideal(y, u), ideal(x, v), ideal(y, v)})

o2 = 3*Div(x, v) + -4*Div(y, v) + 1*Div(x, u) + -2*Div(y, u) of R

o2 : WDiv
i3 : divPlus( D )

o3 = 1*Div(x, u) + 3*Div(x, v) of R

o3 : WDiv

See also

Ways to use divPlus :