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

getPrimeDivisors -- Returns the list of prime divisors of a given divisor

Synopsis

Description

Returns the list of prime divisors of a given divisor. The prime divisors are all of the class WDiv

i1 : R = QQ[x, y, z]

o1 = R

o1 : PolynomialRing
i2 : D = divisor({-8, 2}, {ideal(x), ideal(y)})

o2 = -8*Div(x) + 2*Div(y) of R

o2 : WDiv
i3 : getPrimeDivisors( D )

o3 = {1*Div(x) of R, 1*Div(y) of R}

o3 : List

Ways to use getPrimeDivisors :