Factors Command
From GeoGebra Manual
Revision as of 15:21, 13 September 2012 by Alexander Hartl (talk | contribs)
- Factors[ <Polynomial> ]
- Returns list of lists {factor,exponent} such that product of all these factors raised to corresponding exponents equals the given polynomial.
- Example:
Factors[x^8 - 1]
yields {{x^4 + 1, 1}, {x^2 + 1, 1}, {x + 1, 1}, {x - 1, 1}}.
- 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:
Factors[1024]
yields {{2, 10}}, because 1024 = 210.Factors[42]
yields {{2, 1}, {3, 1}, {7, 1}}, because 42 = 21 31 71.
Note: See also PrimeFactors Command and Factor Command.
CAS Syntax
- Factors[ <Polynomial> ]
- Yields a list of lists of the type {factor, exponent} such that the product of all these factors raised to the corresponding powers equals the given polynomial.
- Example:
Factors[x^8 - 1]
yields {{x^4 + 1, 1}, {x^2 + 1, 1}, {x + 1, 1}, {x - 1, 1}}, displayed as \begin{pmatrix} x^4+1&1\\ x^2+1&1\\ x+1&1\\ x-1&1 \end{pmatrix}.- 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:
Factors[1024]
yields {{2, 10}}, displayed as \begin{pmatrix} 2&10 \end{pmatrix}, because 1024 = 210.Factors[42]
yields {{2, 1}, {3, 1}, {7, 1}}, displayed as \begin{pmatrix} 2&1\\ 3&1\\ 7&1 \end{pmatrix}, because 42 = 21 31 71.
Note: See also PrimeFactors Command and Factor Command.