coeffs#
Read the coefficients of a polynomial.
Available in: math cells, REPL.
Syntax#
coeffs(expression, variable)
Arguments and behavior#
The coefficients are listed from the constant term upwards, and zero coefficients are kept so the list lines up with the powers. The example returns matrix.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
coeffs("x^2+2*x+1", "x")Interactive examples could not load. You can still copy the expressions.
Expected result: matrix.