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 –105 clear). Numeric mode must not be set (flag –3 clear).

Results including complex terms are returned if complex mode is set (flag –103 set).

Example: Factorize the following:

x2 + 5x + 6

Command: FACTOR(X^2+5*X+6)

Result: (X+2)(X+3)

See also: EXPAN, EXPAND

FACTORMOD

Type:

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 –105 clear).

 

Numeric mode must not be set (flag –3 clear).

 

Radians mode must be set (flag –17 set).

Example:

Factorize the following expression modulo 3.

 

x2+2

Command:

FACTORMOD(X^2+2)

Result:

(X+1)*(X-1)

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 –105 clear).

 

Numeric mode must not be set (flag –3 clear).

 

Radians mode must be set (flag –17 set).

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 3-83