//SINGULAR Example 1.2.3 ring A = 0,(x,y,z),lp; poly f = y4z3+2x2y2z2+3x5+4z4+5y2; f; //display f in a lex-ordered way leadmonom(f); //leading monomial leadexp(f); //leading exponent lead(f); //leading term leadcoef(f); //leading coefficient f - lead(f); //tail