Singular Manual: piecewisedegree

| #### D.15.2.12 piecewisedegree Procedure from library `arnold.lib` (see arnold_lib). Usage: piecewisedegree(f,w); f poly, w a piecewise weight given by a list, which can be computed using @ref(piecewiseWeightOfPolygon) Return: the piecewise degree of f, with regard to the weight w Example:
    LIB "arnold.lib";
    ring R=0,(x,y),ds;
    poly f = x^9+x^2*y^4+y^2*x^4+y^8+x^3*y^5+y^2*x^5;
    list NP = newtonPolygon(f);
    list w = piecewiseWeightOfPolygon(NP);
    piecewisedegree(f,w);
    ==> 96

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