Difference between revisions of "Factor Command"

From GeoGebra Manual
Jump to: navigation, search
(command syntax: changed [ ] into ( ))
(14 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|algebra}}
{{command|algebra}}
 
 
{{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.
 
: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 - 2) (x + 3)''.</div>}}
==CAS Syntax==
+
{{note| 1=This command needs to load the Computer Algebra System, so can be slow on some computers.}}
;Factor[ <Polynomial> ]
+
<br>
:Factors the polynomial.
+
{{hint|1=
:{{example|1=<div><code><nowiki>Factor[x^2 - y^2]</nowiki></code> yields ''(x + y) (x - y)''.</div>}}
+
In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] you can also use the following syntax:
;Factor[ <Expression>, <Variable> ]
+
;Factor( <Number> )
:Factorizes an expression with respect to a given variable.
+
:Expresses a number in its prime factorization
 +
:{{example| 1=<div><code><nowiki>Factor(360)</nowiki></code> yields ''2³ 3² 5''.</div>}}
 +
;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 ''-(y - x) (y + x)'', the factorization of ''x<sup>2</sup> - y<sup>2</sup>'' with respect to ''y''.</div>}}
{{note| 1=<div>
+
}}
See also [[CFactor Command]].
+
{{note| 1=This command factors expressions over the [[w:Rational_number|Rational Numbers]]. To factor over irrational real numbers, see the [[IFactor Command]]. To factor over complex numbers, see the [[CFactor Command]] and [[CIFactor Command]].}}
</div>}}
 

Revision as of 11:49, 5 October 2017


Factor( <Polynomial> )
Factors the polynomial.
Example:
Factor(x^2 + x - 6) yields (x - 2) (x + 3).
Note: This command needs to load the Computer Algebra System, so can be slow on some computers.


Note Hint: In the Menu view cas.svg CAS View you can also use the following syntax:
Factor( <Number> )
Expresses a number in its prime factorization
Example:
Factor(360) yields 2³ 3² 5.
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 -(y - x) (y + x), the factorization of x2 - y2 with respect to y.
Note: This command factors expressions over the Rational Numbers. To factor over irrational real numbers, see the IFactor Command. To factor over complex numbers, see the CFactor Command and CIFactor Command.
© 2024 International GeoGebra Institute