[back] [prev] [next] [index] [root]

 


Num

Returns the numerator of an object.

Syntax:

d := Num( q );
d := Num( a );
d := Num(I);

integer
  d  
quotient field element or polynomial
  d  
rational
  q  
algebraic function field order element
  a  
algebraic element
  a  
quotient field element or polynomial
  q  
ideal
  I  

Description:

For a rational number the function returns the numerator of the rational argument. For an algebraic number a or for a fractional ideal \a the function returns dcdot a or dcdot \a. d is the smallest integer that dcdot a is an algebraic integral or an integral ideal For an algebraic function field order element see AlffEltDen.


Example:

An absolute example for an algebraic element:

kash> o := Order (x^3 - 23*x^2 + 146*x - 244);;
kash> a := Elt (o, [1/2,3/5,45/5657567]);
[28287835, 33945402, 450] / 56575670
kash> Num ( a );
> [28287835, 33945402, 450]


<- back[back] [prev] [next] [index] [root]