commands → factor

factor(A)
factor(A,P)

The factor command computes the factorization of A where A is a polynomial. An optional second argument P specifies the modulus for modulo a prime.

Examples

factor(x^2-1);
	(-1+x)*(1+x)

factor(x^2-1,11);
	(10+x)*(1+x)