next | previous | forward | backward | up | top | index | toc | Macaulay2 website
SpaceCurves :: genus(Divisor)

genus(Divisor) -- computes the genus of a Divisor

Synopsis

Description

Computes the genus of a Divisor using the adjunction formula.
i1 : R = ZZ/101[x,y,z,w];
i2 : Q = quadricSurface(R);
i3 : D = divisor({3,4},Q);
i4 : genus D

o4 = 6

o4 : QQ