6.27.11 Trailing coefficient degree of a polynomial: tcoeff
The tcoeff command finds the trailing coefficient of a
polynomial; that is, the coefficient of the monomial of lowest degree.
-
tcoeff takes one mandatory argument and one optional
argument:
-
P, a polynomial given by a symbolic expression or by its
list of coefficients.
- Optionally x, a variable name (by default x).
- tcoeff(P ⟨,x⟩) returns the trailing coefficient of P.
Examples.
-
Input:
tcoeff([2,1,-1,0])
Output:
- Input:
tcoeff(3*x^2+5*x,x)
Output:
- Input:
tcoeff(3*x^2+5*x*y^2,y)
Output: