up previous next
CommonDenom

Common denominator of a polynomial with rational coefficients

Syntax
CommonDenom(f: RINGELEM): RINGELEM
CommonDenom(L: LIST of RINGELEM): RINGELEM

Description
This function returns a common denominator for the polynomial f . The coefficient ring of the polynomial ring to which f belongs must be a fraction field.

Example
/**/  use P ::= QQ[x,y];
/**/  f := (1/4)*x+(1/6)*y;
/**/ CommonDenom(f);
12
/**/ CommonDenom(2*x);
1
/**/ CommonDenom([2*x, y/3]);
3

See Also