coeff = leadCoefficient f
Returns the lead coefficient of an NCRingElement (as an element of the base).
i1 : A = QQ{x,y,z,w} o1 = A o1 : NCPolynomialRing
i2 : f = x^2+y^2+z^3 3 2 2 o2 = z +y +x o2 : A
i3 : coeff = leadCoefficient f o3 = 1 o3 : QQ