commands → content

content(A)

The content command computes the rational content of a polynomial A. Dividing a polynomial by its content will produce an integer polynomial whose coefficients are relatively prime.

Examples

f = 2*x^2 + 4*x + 6;
content(f);
	2

g = x^2/9 + x/12 + 1/16;
content(g);
	1/144