up previous next
Common denominator of a polynomial with rational coefficients
CommonDenom(RINGELEM f): RINGELEM |
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.
/**/ use P ::= QQ[x,y];
/**/ f := (1/4)*x+(1/6)*y;
/**/ CommonDenom(f);
12
/**/ CommonDenom(2*x);
1
|