icontent - Maple Help

icontent

integer content of a polynomial

 Calling Sequence icontent(expr)

Parameters

 expr - expanded polynomial with rational coefficients

Description

 • icontent computes a rational number such that dividing the expanded polynomial by it makes the polynomial primitive over the integers. Thus, for integer coefficients, icontent returns the greatest common divisor of the coefficients.
 • For rational coefficients, icontent computes the least common multiple of the denominators of all fractions in addition to the greatest common divisor of the numerators of the coefficients.

 • The icontent command is thread-safe as of Maple 15.

Examples

 > $f≔\mathrm{icontent}\left(3x+12y\right)$
 ${f}{≔}{3}$ (1)
 > $\frac{3x+12y}{f}$
 ${x}{+}{4}{}{y}$ (2)
 > $g≔\mathrm{icontent}\left(\frac{7}{6}y+\frac{21}{4}z\right)$
 ${g}{≔}\frac{{7}}{{12}}$ (3)
 > $\frac{\frac{7}{6}y+\frac{21}{4}z}{g}$
 ${2}{}{y}{+}{9}{}{z}$ (4)
 > $h≔\mathrm{icontent}\left(45y+\frac{3}{4}x-9z\right)$
 ${h}{≔}\frac{{3}}{{4}}$ (5)
 > $\frac{45y+\frac{3}{4}x-9z}{h}$
 ${60}{}{y}{+}{x}{-}{12}{}{z}$ (6)