Difference between revisions of "Factor Command"
From GeoGebra Manual
Line 3: | Line 3: | ||
{{Alternate Language|region=US|page_type=Command|US_version=Factor|UK_version=Factorise|Aus_version=Factorise}} | {{Alternate Language|region=US|page_type=Command|US_version=Factor|UK_version=Factorise|Aus_version=Factorise}} | ||
;Factor[ <Polynomial> ] | ;Factor[ <Polynomial> ] | ||
− | : | + | :Factors the polynomial. |
:{{example| 1=<div><code><nowiki>Factor[x^2 + x - 6]</nowiki></code> yields ''f(x) = (x - 2) (x + 3)''.</div>}} | :{{example| 1=<div><code><nowiki>Factor[x^2 + x - 6]</nowiki></code> yields ''f(x) = (x - 2) (x + 3)''.</div>}} | ||
==CAS Syntax== | ==CAS Syntax== | ||
;Factor[ <Polynomial> ] | ;Factor[ <Polynomial> ] | ||
− | : | + | :Factors the polynomial. |
:{{example|1=<div><code><nowiki>Factor[x^2 - y^2]</nowiki></code> yields ''(x + y) (x - y)''.</div>}} | :{{example|1=<div><code><nowiki>Factor[x^2 - y^2]</nowiki></code> yields ''(x + y) (x - y)''.</div>}} | ||
;Factor[ <Expression>, <Variable> ] | ;Factor[ <Expression>, <Variable> ] | ||
− | : | + | :Factors an expression with respect to a given variable. |
:{{example|1=<div> | :{{example|1=<div> | ||
:* <code><nowiki>Factor[x^2 - y^2, x]</nowiki></code> yields ''(x + y) (x - y)'', the factorization of ''x<sup>2</sup> - y<sup>2</sup>'' with respect to ''x'', | :* <code><nowiki>Factor[x^2 - y^2, x]</nowiki></code> yields ''(x + y) (x - y)'', the factorization of ''x<sup>2</sup> - y<sup>2</sup>'' with respect to ''x'', | ||
:* <code><nowiki>Factor[x^2 - y^2, y]</nowiki></code> yields ''(-x - y) (-x + y)'', the factorization of ''x<sup>2</sup> - y<sup>2</sup>'' with respect to ''y''.</div>}} | :* <code><nowiki>Factor[x^2 - y^2, y]</nowiki></code> yields ''(-x - y) (-x + y)'', the factorization of ''x<sup>2</sup> - y<sup>2</sup>'' with respect to ''y''.</div>}} | ||
{{note| 1=<div> | {{note| 1=<div> | ||
− | + | This command factors expressions over the [[w:Rational|Rational Numbers]]. To factor over complex numbers, see the [[CFactor Command]]. | |
</div>}} | </div>}} |
Revision as of 11:39, 19 October 2012
This command differs among variants of English:
|
- Factor[ <Polynomial> ]
- Factors the polynomial.
- Example:
Factor[x^2 + x - 6]
yields f(x) = (x - 2) (x + 3).
CAS Syntax
- Factor[ <Polynomial> ]
- Factors the polynomial.
- Example:
Factor[x^2 - y^2]
yields (x + y) (x - y).
- Factor[ <Expression>, <Variable> ]
- Factors an expression with respect to a given variable.
- Example:
Factor[x^2 - y^2, x]
yields (x + y) (x - y), the factorization of x2 - y2 with respect to x,Factor[x^2 - y^2, y]
yields (-x - y) (-x + y), the factorization of x2 - y2 with respect to y.
Note:
This command factors expressions over the Rational Numbers. To factor over complex numbers, see the CFactor Command.