Name:
coeff
gives the coefficient of degree n of a polynomial
Usage:
coeff
(
f
,
n
) : (
function
,
integer
) ->
constant
Parameters:
f
is a function (usually a polynomial).
n
is an integer
Description:
If
f
is a polynomial,
coeff
(
f
,
n
) returns the coefficient of degree
n
in
f
.
If
f
is a function that is not a polynomial,
coeff
(
f
,
n
) returns 0.
Example 1:
> coeff((1+x)^5,3);
10
Example 2:
> coeff(sin(x),0);
0
See also:
degree
,
roundcoefficients
,
subpoly
Go back to the list of commands