up previous next
den

denominator

Syntax
den(N: INT or RAT): INT
den(N: RINGELEM): RINGELEM

Description
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.

Example
/**/  den(3);
1

/**/  P ::= QQ[x,y];
/**/  F := NewFractionField(P);
/**/  Use F;
/**/  den(x/(x+y));
x +y
/**/ RingOf(It);
RingDistrMPolyClean(QQ, 2)

See Also