Difference between revisions of "Factors Command"

From GeoGebra Manual
Jump to: navigation, search
Line 5: Line 5:
 
:{{example| 1=<div><code><nowiki>Factors[x^8 - 1]</nowiki></code> yields ''{{x^4 + 1, 1},  {x^2 + 1, 1}, {x + 1, 1}, {x - 1, 1}}''.</div>}}
 
:{{example| 1=<div><code><nowiki>Factors[x^8 - 1]</nowiki></code> yields ''{{x^4 + 1, 1},  {x^2 + 1, 1}, {x + 1, 1}, {x - 1, 1}}''.</div>}}
 
:{{note| 1=Not all of the factors are irreducible over the reals.}}
 
:{{note| 1=Not all of the factors are irreducible over the reals.}}
 +
 
;Factors[ <Number> ]
 
;Factors[ <Number> ]
 
:Gives a list of lists of the type ''{prime, exponent}'' such that the product of all these primes raised to the power of the corresponding exponents equals the given number. The primes are sorted in ascending order.
 
:Gives a list of lists of the type ''{prime, exponent}'' such that the product of all these primes raised to the power of the corresponding exponents equals the given number. The primes are sorted in ascending order.
Line 11: Line 12:
 
:* <code><nowiki>Factors[42]</nowiki></code> yields ''{{2, 1}, {3, 1}, {7, 1}}'', since <math>42 = 2^1・3^1・7^1</math>.</div>}}
 
:* <code><nowiki>Factors[42]</nowiki></code> yields ''{{2, 1}, {3, 1}, {7, 1}}'', since <math>42 = 2^1・3^1・7^1</math>.</div>}}
 
{{note|See also [[PrimeFactors Command]] and [[Factor Command]].}}
 
{{note|See also [[PrimeFactors Command]] and [[Factor Command]].}}
 +
 +
 
==CAS Syntax==
 
==CAS Syntax==
 
;Factors[ <Polynomial> ]
 
;Factors[ <Polynomial> ]
Line 21: Line 24:
 
\end{pmatrix}</math>.</div>}}
 
\end{pmatrix}</math>.</div>}}
 
:{{note| 1=Not all of the factors are irreducible over the reals.}}
 
:{{note| 1=Not all of the factors are irreducible over the reals.}}
 +
 
;Factors[ <Number> ]
 
;Factors[ <Number> ]
 
:Gives a list of lists of the type ''{prime, exponent}'' such that the product of all these primes raised to the power of the corresponding exponents equals the given number. The primes are sorted in ascending order.
 
:Gives a list of lists of the type ''{prime, exponent}'' such that the product of all these primes raised to the power of the corresponding exponents equals the given number. The primes are sorted in ascending order.

Revision as of 10:26, 8 July 2013



Factors[ <Polynomial> ]
Gives a list of lists of the type {factor, exponent} such that the product of all these factors raised to the power of the corresponding exponents equals the given polynomial. The factors are sorted by degree in descending order.
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> ]
Gives a list of lists of the type {prime, exponent} such that the product of all these primes raised to the power of the corresponding exponents equals the given number. The primes are sorted in ascending order.
Example:
  • Factors[1024] yields {{2, 10}}, since 1024 = 2^{10}.
  • Factors[42] yields {{2, 1}, {3, 1}, {7, 1}}, since 42 = 2^1・3^1・7^1.


CAS Syntax

Factors[ <Polynomial> ]
Gives a list of lists of the type {factor, exponent} such that the product of all these factors raised to the power of the corresponding exponents equals the given polynomial. The factors are sorted by degree in descending order.
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> ]
Gives a list of lists of the type {prime, exponent} such that the product of all these primes raised to the power of the corresponding exponents equals the given number. The primes are sorted in ascending order.
Example:
  • Factors[1024] yields {{2, 10}}, displayed as \begin{pmatrix} 2&10 \end{pmatrix}, since 1024 = 2^{10}.

    • Factors[42] yields {{2, 1}, {3, 1}, {7, 1}}, displayed as \begin{pmatrix} 2&1\\ 3&1\\ 7&1

      \end{pmatrix}
      , since 42 = 2^1・3^1・7^1.
© 2024 International GeoGebra Institute