next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Divisor :: coefficient(Ideal,BasicDivisor)

coefficient(Ideal,BasicDivisor) -- get the coefficient of a given ideal for a fixed divisor

Synopsis

Description

Returns the coefficient of D along the prime divisor associated to P.

i1 : R = QQ[x,y,u,v]/ideal(x*y-u*v);
i2 : D = divisor(x)

o2 = Div(u, x) + Div(v, x)

o2 : WeilDivisor on R
i3 : coefficient(ideal(x,u), D)

o3 = 1
i4 : E = divisor(x*u)

o4 = 2*Div(u, x) + Div(v, x) + Div(u, y)

o4 : WeilDivisor on R
i5 : coefficient(ideal(x,u), E)

o5 = 2

See also