up previous next
num

numerator

Syntax
num(N:INT or RAT):INT
num(N:POLY or RATFUN):POLY

Description
These functions return the numerator and denominator of N. The fragile syntax in CoCoA 4 N.Num and N.Den is no longer supported.

Example
/**/  num(3);
3

/**/  P ::= QQ[x,y];
/**/  F := NewFractionField(P);
/**/  Use F;
/**/  Den(x/(x+y));
x

See Also