CoCoA:Den

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Den

denominator

Description

These functions return the numerator and denominator of N. The

numerator and denominator can also be found using .Num

and .Den (fragile).

Example

  Den(3);
1
-------------------------------
  Den(x/(x+y));
x + y
-------------------------------
  X := 2/3;
  X.Num; X.Den;
2
-------------------------------
3
-------------------------------

Syntax

Den(N:INT or RAT):INT
Den(N:POLY or RATFUN):POLY

Numerators and Denominators for Rational Functions

Numerators and Denominators for Rational Numbers

Num

   <type>integer</type>
   <type>polynomial</type>
   <type>rat</type>
   <type>ratfun</type>