Symbolic Math Toolbox
  Go to function:
    Search    Help Desk 
factor    Examples   See Also

Factorization.

Syntax

Description

factor can take a positive integer, an array of symbolic expressions, or an array of symbolic integers as an argument. If N is a positive integer, factor(N) returns the prime factorization of N.

If S is a matrix of polynomials or integers, factor(S) factors each element. If any element of an integer array has more than 16 digits, you must use sym to create that element, for example, sym('N').

Examples

factor(x^3-y^3) returns

factor([a^2-b^2, a^3+b^3]) returns

factor(sym('12345678901234567890')) returns

See Also

collect, expand, horner, simplify, simple

[ Previous | Help Desk | Next ]