Difference between revisions of "Factors Command"

From GeoGebra Manual
Jump to: navigation, search
(Autogenerated from properties)
Line 1: Line 1:
 
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
{{command|function}}
 
{{command|function}}
;Factors[ <Polynomial> ]
+
;Factors[ <Polynomial> ]:Returns list of lists ''{factor,exponent}'' such that product of all these factors raised to corresponding exponents equals the given polynomial.
:{{description}}
+
{{Note|Not all of the factors are irreducible over the reals.}}
 +
{{description}}
 +
;Factors[ <Number> ]:Returns list of lists ''{prime,exponent}'' such that product of all these primes raised to corresponding exponents equals the given number. Primes are sorted in ascending order.
 +
{{Example|
 +
* <code>PrimeFactorization[1024]</code> returns ''{(2,10)}'', because ''1024{{=}}2<sup>10</sup>''.
 +
* <code>PrimeFactorization[42]</code> returns ''{(2,1),(3,1),(7,1)}'', because ''42{{=}}2<sup>1</sup>3<sup>1</sup>7<sup>1</sup>''.}}
 +
{{Note|See also [[PrimeFactors Command]].}}

Revision as of 17:17, 28 February 2011



Factors[ <Polynomial> ]
Returns list of lists {factor,exponent} such that product of all these factors raised to corresponding exponents equals the given polynomial.
Note: Not all of the factors are irreducible over the reals.


Factors[ <Number> ]
Returns list of lists {prime,exponent} such that product of all these primes raised to corresponding exponents equals the given number. Primes are sorted in ascending order.
Example:
  • PrimeFactorization[1024] returns {(2,10)}, because 1024=210.
  • PrimeFactorization[42] returns {(2,1),(3,1),(7,1)}, because 42=213171.
Note: See also PrimeFactors Command.
© 2024 International GeoGebra Institute