Factorization.
Syntax
factor(X)
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
(x-y)*(x^2+x*y+y^2)
factor([a^2-b^2, a^3+b^3])
returns
[(a-b)*(a+b), (a+b)*(a^2-a*b+b^2)]
factor(sym('12345678901234567890'))
returns
(2)*(3)^2*(5)*(101)*(3803)*(3607)*(27961)*(3541)
See Also
collect
, expand
, horner
, simplify
, simple
[ Previous | Help Desk | Next ]