Difference between revisions of "Factor Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 4: Line 4:
 
;Factor[ <Polynomial> ]
 
;Factor[ <Polynomial> ]
 
:Factors the 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 ''(x + 3) (x - 2)''.</div>}}
 
==CAS Syntax==
 
==CAS Syntax==
 
;Factor[ <Polynomial> ]
 
;Factor[ <Polynomial> ]
Line 14: Line 14:
 
:* <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=This command factors expressions over the [[w:Rational_number|Rational Numbers]]. To factor over complex numbers, see the [[CFactor Command]].}}
This command factors expressions over the [[w:Rational_number|Rational Numbers]]. To factor over complex numbers, see the [[CFactor Command]].
 
</div>}}
 

Revision as of 07:49, 24 May 2013



Factor[ <Polynomial> ]
Factors the polynomial.
Example:
Factor[x^2 + x - 6] yields (x + 3) (x - 2).

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.
© 2024 International GeoGebra Institute