Coefficients of a polynomial (coefficients)
List the coefficients of a polynomial, constant term first.
How to write it
coefficients(polynomial, x)
- polynomial
- A polynomial, such as x^2 - 2. Takes a polynomial.
- x
- The variable of the polynomial. Takes a variable.
Examples
coefficients(2x^3 - x + 5, x)In the solver,
Open in the solvercoefficients(2x^3 - x + 5, x)gives[5, -1, 0, 2].
Related functions
- collect
Group the terms of an expression by powers of a variable.
- cancel
Cancel the common factors of a fraction.
- complex_expand
Expand an expression assuming its variables are real.
- apart
Split a rational expression into partial fractions.
- cyclotomic
Cyclotomic polynomial of a given order.
- together
Combine fractions into one over a common denominator.