Difference between revisions of "CompleteSquare Command"
From GeoGebra Manual
(added example and cas syntax) |
|||
Line 2: | Line 2: | ||
{{command|algebra}} | {{command|algebra}} | ||
;CompleteSquare[ <Quadratic Function> ] | ;CompleteSquare[ <Quadratic Function> ] | ||
− | :Returns the quadratic function in | + | :Returns the quadratic function in the form: <math>a (x - h)^2 + k</math>. |
− | :{{example|1=<code>CompleteSquare[x^2 - 4x + 7]</code> yields | + | :{{example|1=<div><code>CompleteSquare[x^2 - 4x + 7]</code> yields ''1 (x - 2)<sup>2</sup> + 3''.</div>}} |
==CAS Syntax== | ==CAS Syntax== | ||
;CompleteSquare[ <Quadratic Function> ] | ;CompleteSquare[ <Quadratic Function> ] | ||
:Returns the quadratic function in the form: <math>a(x-h)^2+k</math>. | :Returns the quadratic function in the form: <math>a(x-h)^2+k</math>. | ||
− | :{{example|1=<code>CompleteSquare[x^2 - 4x + 7]</code> yields | + | :{{example|1=<div><code>CompleteSquare[x^2 - 4x + 7]</code> yields ''(x - 2)<sup>2</sup> + 3''.</div>}} |
Revision as of 14:55, 8 August 2013
- CompleteSquare[ <Quadratic Function> ]
- Returns the quadratic function in the form: a (x - h)^2 + k.
- Example:
CompleteSquare[x^2 - 4x + 7]
yields 1 (x - 2)2 + 3.
CAS Syntax
- CompleteSquare[ <Quadratic Function> ]
- Returns the quadratic function in the form: a(x-h)^2+k.
- Example:
CompleteSquare[x^2 - 4x + 7]
yields (x - 2)2 + 3.
Comments
Article Completing the square on wikipedia shows how can this be useful in describing and plotting quadratic functions.