Coefficients Command
- Coefficients( <Polynomial> )
-
Yields the list of all coefficients ak,ak−1,…,a1,a0 of the polynomial akxk+ak−1xk−1+⋯+a1x+a0.
Coefficients(x^3 - 3 x^2 + 3 x)
yields {1, -3, 3, 0}.
For non-polynomial curves obtained using one the fitting commands e.g. |
- Coefficients( <Conic> )
-
Returns the list of the coefficients a, b, c, d, e, f of a conic in standard form: a⋅x2+b⋅y2+c+d⋅x⋅y+e⋅x+f⋅y=0
For a line in implicit form l: ax + by + c = 0 it is possible to obtain the coefficients using the syntax x(l), y(l), z(l). |
Given line l: 3x + 2y - 2 = 0
:
-
x(l)
returns 3 -
y(l)
returns 2 -
z(l)
returns -2
CAS Syntax
- Coefficients( <Polynomial> )
-
Yields the list of all coefficients of the polynomial in the main variable.
Coefficients(x^3 - 3 x^2 + 3 x)
yields {1, -3, 3, 0}.
- Coefficients( <Polynomial>, <Variable> )
-
Yields the list of all coefficients of the polynomial in the given variable.
-
Coefficients(a^3 - 3 a^2 + 3 a, a)
yields {1, -3, 3, 0}. -
Coefficients(a^3 - 3 a^2 + 3 a, x)
yields {a³ - 3 a² + 3 a}.