LeadingCoefficient( f )
LeadingCoefficient returns the last non-zero coefficient of f (see Polynomials).
LeadingCoefficient
gap> x := Indeterminate(Rationals);; x.name := "x";; gap> LeadingCoefficient( 3*x^2 + 2*x + 1); 3
Previous Up Top NextIndex