

Note that any integer content (see first example below) is not factored. Thus factor does not necessarily factor into linear factors. For example, if the coefficients are all integers then factor computes all irreducible factors with integer coefficients. If the second argument K is not given, the polynomial is factored over the field implied by the coefficients. To explicitly request Wang's algorithm, which was the default in Maple 2018 and earlier versions, use the option method="Wang". The default is the latter, since it is faster on most examples. Use the ifactor function to factor integers.įor multivariate polynomials with integer coefficients, the factor command offers two algorithms: Wang's algorithm (see ) and the algorithm by Monagan and Tuncer (, ). Nor does it factor integer coefficients in a polynomial.

The factor function does NOT factor integers. The factor function computes the factorization of a multivariate polynomial with integer, rational, (complex) numeric, or algebraic number coefficients. Multivariate polynomial with rational coefficients
