up previous next
CommonDenom

Common denominator of a polynomial with rational coefficients

Syntax
CommonDenom(RINGELEM f): 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

See Also