Differenze tra le versioni di "Comando Coefficienti"
Da GeoGebra Manual.
Riga 1: | Riga 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|function|Coefficienti}} |
− | {{command|cas=true|function|Coefficienti}} | ||
; Coefficienti[Polinomio] | ; Coefficienti[Polinomio] | ||
: Restituisce la lista di tutti i coefficienti <math>a_k,a_{k-1},\ldots,a_1, a_0</math> di un polinomio nella forma <math>a_kx^k+a_{k-1}x^{k-1}+\cdots+a_1x+a_0</math>. | : Restituisce la lista di tutti i coefficienti <math>a_k,a_{k-1},\ldots,a_1, a_0</math> di un polinomio nella forma <math>a_kx^k+a_{k-1}x^{k-1}+\cdots+a_1x+a_0</math>. | ||
Riga 8: | Riga 7: | ||
: Data la conica in forma canonica <math>a x^2 + b y^2 + c + d x y + e x + f y = 0</math> restituisce la lista {''a'', ''b'', ''c'', ''d'', ''e'', ''f'' }. | : Data la conica in forma canonica <math>a x^2 + b y^2 + c + d x y + e x + f y = 0</math> restituisce la lista {''a'', ''b'', ''c'', ''d'', ''e'', ''f'' }. | ||
:{{note|1=Per le rette in forma implicita ''r'': ''ax'' + ''by'' + ''c'' = 0 è possibile ottenere i coefficienti utilizzando la sintassi ''x''(''r''), ''y''(''r''), ''z''(''r''). | :{{note|1=Per le rette in forma implicita ''r'': ''ax'' + ''by'' + ''c'' = 0 è possibile ottenere i coefficienti utilizzando la sintassi ''x''(''r''), ''y''(''r''), ''z''(''r''). | ||
− | ::{{example|1= Data <code>r: 3x + 2y - 2 = 0</code> : <code>x(''r'' )</code> restituisce 3 | + | ::{{example|1= Data <code>r: 3x + 2y - 2 = 0</code> : <div> |
+ | ::*<code>x(''r'' )</code> restituisce 3 | ||
+ | ::*<code>y(''r'' )</code> restituisce 2 | ||
+ | ::*<code>z(''r'' )</code> restituisce -2.</div> }} }} | ||
==Sintassi CAS== | ==Sintassi CAS== |
Versione delle 10:50, 2 ott 2015
- Coefficienti[Polinomio]
- Restituisce la lista di tutti i coefficienti a_k,a_{k-1},\ldots,a_1, a_0 di un polinomio nella forma a_kx^k+a_{k-1}x^{k-1}+\cdots+a_1x+a_0.
- Esempio:
Coefficienti[x^3 - 3 x^2 + 3 x]
restituisce {1, -3, 3, 0}.
- Coefficienti[Conica]
- Data la conica in forma canonica a x^2 + b y^2 + c + d x y + e x + f y = 0 restituisce la lista {a, b, c, d, e, f }.
- Note: Per le rette in forma implicita r: ax + by + c = 0 è possibile ottenere i coefficienti utilizzando la sintassi x(r), y(r), z(r).
- Esempio: Data
r: 3x + 2y - 2 = 0
:x(r )
restituisce 3y(r )
restituisce 2z(r )
restituisce -2.
Sintassi CAS
- Coefficienti[Polinomio]
- Restituisce la lista di tutti i coefficienti del polinomio rispetto alla variabile principale.
- Esempio:
Coefficienti[x^3 - 3 x^2 + 3 x]
restituisce {1, -3, 3, 0}.
- Coefficienti[Polinomio, Variabile]
- Restituisce la lista di tutti i coefficienti del polinomio rispetto alla variabile indicata.
- Esempio:
Coefficienti[a^3 - 3 a^2 + 3 a, a]
restituisce {1, -3, 3, 0}Coefficienti[a^3 - 3 a^2 + 3 a, x]
restituisce a³ - 3 a² + 3 a.