Classes |
class | BigRatRep |
class | BigRat |
Typedefs |
typedef RCImpl< BigRatRep > | RCBigRat |
Functions |
BigRat | operator+ (const BigRat &a, const BigRat &b) |
BigRat | operator- (const BigRat &a, const BigRat &b) |
BigRat | operator* (const BigRat &a, const BigRat &b) |
BigRat | operator/ (const BigRat &a, const BigRat &b) |
BigRat | div_exact (const BigRat &x, const BigRat &y) |
| divisible(x,y) = "x | y"
|
BigInt | numerator (const BigRat &a) |
| numerator
|
BigInt | denominator (const BigRat &a) |
| denominator
|
BigRat | gcd (const BigRat &x, const BigRat &y) |
bool | isInteger (const BigRat &x) |
bool | isDivisible (const BigRat &x, const BigRat &y) |
BigRat | operator<< (const BigRat &a, unsigned long ul) |
BigRat | operator>> (const BigRat &a, unsigned long ul) |
int | cmp (const BigRat &x, const BigRat &y) |
bool | operator== (const BigRat &a, const BigRat &b) |
bool | operator!= (const BigRat &a, const BigRat &b) |
bool | operator>= (const BigRat &a, const BigRat &b) |
bool | operator> (const BigRat &a, const BigRat &b) |
bool | operator<= (const BigRat &a, const BigRat &b) |
bool | operator< (const BigRat &a, const BigRat &b) |
std::ostream & | operator<< (std::ostream &o, const BigRat &x) |
std::istream & | operator>> (std::istream &i, BigRat &x) |
int | sign (const BigRat &a) |
| sign
|
BigRat | abs (const BigRat &a) |
| abs
|
BigRat | neg (const BigRat &a) |
| neg
|
BigRat | div2 (const BigRat &a) |
| div2
|
long | longValue (const BigRat &a) |
| longValue
|
double | doubleValue (const BigRat &a) |
| doubleValue
|
BigInt | BigIntValue (const BigRat &a) |
| return BigInt value
|