Input: An expression or an integer.
Output: The factorized expression, or the integer expressed as the product of prime numbers.
Flags: Exact mode must be set (flag
Results including complex terms are returned if complex mode is set (flag
Example: Factorize the following:
x2 + 5x + 6
Command: FACTOR(X^2+5*X+6)
Result: (X+2)(X+3)
See also: EXPAN, EXPAND
FACTORMODType: | Function |
Description: | Factorizes a polynomial modulo the current modulus. The modulus must be less than 100, and a |
| prime number, it can be changed by MODSTO. |
Access: | Arithmetic, !ÞMODULO |
Input: | The expression to be factorized. |
Output: | The factorized expression modulo the current modulus. |
Flags: | Exact mode must be set (flag |
| Numeric mode must not be set (flag |
| Radians mode must be set (flag |
Example: | Factorize the following expression modulo 3. |
| x2+2 |
Command: | FACTORMOD(X^2+2) |
Result: | |
See also: | MODSTO |
|
|
FACTORS |
|
Type: | Command |
Description: | For a value or expression, returns a list of prime factors and their multiplicities. |
Access: | Arithmetic, !Þ |
Input: | A value or expression. |
Output: | A list of prime factors of the value or expression, with each factor followed by its multiplicity |
| expressed as a real number. |
Flags: | Exact mode must be set (flag |
| Numeric mode must not be set (flag |
| Radians mode must be set (flag |
Example 1: | Find the prime factors of 100. |
Command: | FACTORS(100) |
Result: | {5 2. 2 2.} |
Example 2: | Find the irreducible factors of: x2 + 4x + 4 |
Command: | FACTORS(X^2+4*X+4) |
Result: | {X+2,2.} |
|
|
| Full Command and Function Reference |