Givaro
Data Structures | Namespaces | Functions
givrational.h File Reference

Rationals (and domain), composed of an integer (numerator), and a positive integer (denominator) NO DOC. More...

#include "givaro/givinteger.h"
#include "givaro/givmodule.h"
#include "givaro/ring-interface.h"
#include "givaro/givrational.inl"
+ Include dependency graph for givrational.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

class  Rational
 Rationals. No doc. More...
 

Namespaces

 Givaro
 Namespace in which the whole Givaro library resides.
 

Functions

int compare (const Rational &a, const Rational &b)
 
int absCompare (const Rational &a, const Rational &b)
 
const Rational pow (const Rational &r, const int64_t l)
 
const Integer floor (const Rational &r)
 
const Integer ceil (const Rational &r)
 
const Integer round (const Rational &r)
 
const Integer trunc (const Rational &r)
 
const Rational abs (const Rational &r)
 
const Rational pow (const Rational &n, uint l)
 
const Rational pow (const Rational &n, uint64_t l)
 
uint64_t length (const Rational &r)
 
int sign (const Rational &r)
 
int isZero (const Rational &r)
 
int isOne (const Rational &r)
 
int isMOne (const Rational &r)
 
int isInteger (const Rational &r)
 
std::istream & operator>> (std::istream &in, Rational &r)
 

Detailed Description

Rationals (and domain), composed of an integer (numerator), and a positive integer (denominator) NO DOC.