Difference between revisions of "Coefficients Command"
From GeoGebra Manual
Line 2: | Line 2: | ||
{{command|cas=true|function}} | {{command|cas=true|function}} | ||
;Coefficients[ <Polynomial> ] | ;Coefficients[ <Polynomial> ] | ||
− | :For polynomial <math> | + | :For polynomial <math>a_k x^k + a_{k-1} x^{k-1} + \cdots + a_1 x + a_0</math> returns list <math>\{a_k, ldots, a_1, \a_0\}</math>. |
+ | :{{example| 1=<div><code><nowiki>Coefficients[x^3 - 3 x^2 + 3 x]</nowiki></code> yields ''{1, -3, 3, 0}'', the list of all coefficients of <math>x^3 - 3 x^2 + 3 x</math>.</div>}} | ||
;Coefficients[ <Conic> ] | ;Coefficients[ <Conic> ] | ||
− | :For conic <math>a\cdot x^2+b\cdot y^2+c+d\cdot x\cdot y+e\cdot x+f\cdot y=0</math> returns list <math>\{a,b,c,d,e,f\}</math>. | + | :For conic <math>a\cdot x^2 + b\cdot y^2 + c + d\cdot x\cdot y + e\cdot x + f\cdot y = 0</math> returns list <math>\{a, b, c, d, e, f\}</math>. |
==CAS Specific Syntax== | ==CAS Specific Syntax== | ||
In [[CAS View]] only one syntax is allowed: | In [[CAS View]] only one syntax is allowed: |
Revision as of 10:34, 11 September 2012
- Coefficients[ <Polynomial> ]
- For polynomial a_k x^k + a_{k-1} x^{k-1} + \cdots + a_1 x + a_0 returns list \{a_k, ldots, a_1, \a_0\}.
- Example:
Coefficients[x^3 - 3 x^2 + 3 x]
yields {1, -3, 3, 0}, the list of all coefficients of x^3 - 3 x^2 + 3 x.
- Coefficients[ <Conic> ]
- For conic a\cdot x^2 + b\cdot y^2 + c + d\cdot x\cdot y + e\cdot x + f\cdot y = 0 returns list \{a, b, c, d, e, f\}.
CAS Specific Syntax
In CAS View only one syntax is allowed:
- Coefficients[ <Polynomial> ]
- Yields the list of all coefficients of the given polynomial.
- Example:
Coefficients[x^3 - 3 x^2 + 3 x]
yields {1, -3, 3, 0}, the list of all coefficients of x^3 - 3 x^2 + 3 x.