Difference between revisions of "CoCoA:Num"
From ApCoCoAWiki
(pushing XML rev. 1.46, again) |
(No difference)
|
Latest revision as of 10:02, 24 October 2007
Num
numerator
Description
These functions return the numerator and denominator of N. The
numerator and denominator can also be found using .Num
and .Den (fragile).
Example
Num(3); 3 ------------------------------- Num(x/(x+y)); x ------------------------------- X := 2/3; X.Num; X.Den; 2 ------------------------------- 3 -------------------------------
Syntax
Num(N:INT or RAT):INT Num(N:POLY or RATFUN):POLY
Numerators and Denominators for Rational Functions
Numerators and Denominators for Rational Numbers
<type>integer</type> <type>polynomial</type> <type>rat</type> <type>ratfun</type>