up previous next
denominator
den(N:INT or RAT):INT
den(N:POLY or RATFUN):POLY
|
These function returns the denominator of the argument X.
If X is a RingElem in FractionField(R), then den(X) is a RingElem in R.
NB In CoCoA 4 the numerator and denominator could also be found
using
.Num
and
.Den
, but this fragile syntax is no
longer supported.
/**/ den(3);
1
/**/ P ::= QQ[x,y];
/**/ F := NewFractionField(P);
/**/ Use F;
/**/ Den(x/(x+y));
x +y
/**/ RingOf(It);
RingDistrMPolyClean(QQ, 2)
|