Givaro
|
Rationals. No doc. More...
#include <givrational.h>
Public Types | |
enum | ReduceFlag { Reduce = 0x1, NoReduce = 0x0 } |
Static Public Member Functions | |
static void | SetReduce () |
static void | SetNoReduce () |
Static Public Attributes | |
static const Rational | zero |
static const Rational | one |
static const Rational | mOne |
static GivModule | Module |
Protected Member Functions | |
Rational & | reduce () |
bool | ratrecon (const Integer &f, const Integer &m, const Integer &k, bool recurs=false) |
Static Protected Member Functions | |
static void | Init (int *argc, char ***argv) |
static void | End () |
Protected Attributes | |
Integer | num |
Integer | den |
Static Protected Attributes | |
static ReduceFlag | flags = Rational::Reduce |
Friends | |
class | GivModule |
class | RationalDom |
int | compare (const Rational &a, const Rational &b) |
int | absCompare (const Rational &a, const Rational &b) |
const Rational | pow (const Rational &r, const long 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, unsigned int l) |
const Rational | pow (const Rational &n, unsigned long l) |
unsigned long | length (const Rational &r) |
int | sign (const Rational &r) |
int | isZero (const Rational &r) |
int | isOne (const Rational &r) |
int | isInteger (const Rational &r) |
Rationals. No doc.
enum ReduceFlag |
Rational | ( | Neutral | n = Neutral::zero | ) |
Rational | ( | int | n | ) |
Rational | ( | long | n | ) |
Rational | ( | unsigned long | n | ) |
Rational | ( | long | n, |
long | d | ||
) |
Rational | ( | unsigned long | n, |
unsigned long | d | ||
) |
Rational | ( | double | x | ) |
Rational | ( | const char * | s | ) |
Rational number reconstruction.
, with
and
Rational operator- | ( | ) | const |
|
inline |
|
inline |
|
inline |
std::ostream & print | ( | std::ostream & | o | ) | const |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
staticprotected |
|
static |