Singular Manual: evaluateFormalDivisor

| #### D.5.4.12 evaluateFormalDivisor Procedure from library `divisors.lib` (see divisors_lib). Usage: evaluateFormalDivisor(D); D = formal divisor. Assume: D is a formal divisor on X. Return: a divisor on X Theory: Will evaluate the formal sum. Example:
    LIB "divisors.lib";
    ring r=31991,(x,y,z),dp;
    ideal I = y^2*z - x*(x-z)*(x+3*z);
    qring Q = std(I);
    divisor A = makeDivisor(ideal(x,z),ideal(1));
    divisor B = makeDivisor(ideal(x,y),ideal(1));
    formaldivisor fE= makeFormalDivisor(list(list(-5,A),list(2,B)));
    evaluateFormalDivisor(fE);
    ==> (x,y2) - (z2,x2z)
    ==>

User manual for Singular version 4.4.1, 2025, generated by texi2html.