Difference between revisions of "Coefficients Command"
From GeoGebra Manual
m (Bot: Automated text replacement (-{{command +{{command|cas=true)) |
|||
Line 5: | Line 5: | ||
;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== | ||
+ | In [[CAS View]] only one syntax is allowed: | ||
+ | ;Coefficients[ <Polynomial> ] | ||
+ | :Yields the list of all coefficients of the given polynomial. | ||
+ | :{{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>}} |
Revision as of 10:26, 11 September 2012
- Coefficients[ <Polynomial> ]
- For polynomial a_kx^k+a_{k-1}x^{k-1}+\cdots+a_1x+a_0 returns list \{a_0,a_1,\ldots,a_k\}.
- 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.