![]() |
#include <GMPrat.h>
Data Structures | |
struct | rep |
Public Member Functions | |
Rational () | |
Rational (int) | |
Rational (const Rational &) | |
Rational (const Rational &, const Rational &) | |
Rational (int, int) | |
~Rational () | |
Rational & | operator= (int) |
Rational & | operator= (char *s) |
Rational & | operator= (const Rational &) |
unsigned int | length () const |
Rational | get_num () |
Rational | get_den () |
int | get_num_si () |
int | get_den_si () |
operator int () | |
Rational | operator- () |
Rational | operator~ () |
Rational & | operator+= (const Rational &) |
Rational & | operator-= (const Rational &) |
Rational & | operator*= (const Rational &) |
Rational & | operator/= (const Rational &) |
Rational & | operator++ () |
Rational | operator++ (int) |
Rational & | operator-- () |
Rational | operator-- (int) |
double | complexity () const |
Private Member Functions | |
void | disconnect () |
Private Attributes | |
rep * | p |
Friends | |
Rational | operator- (const Rational &) |
bool | operator< (const Rational &, const Rational &) |
bool | operator<= (const Rational &, const Rational &) |
bool | operator> (const Rational &, const Rational &) |
bool | operator>= (const Rational &, const Rational &) |
bool | operator== (const Rational &, const Rational &) |
bool | operator!= (const Rational &, const Rational &) |
int | sgn (const Rational &) |
Rational | abs (const Rational &) |
Rational | pow (const Rational &, int) |
Rational | gcd (const Rational &, const Rational &) |
Rational | lcm (const Rational &, const Rational &) |
Rational | gcd (Rational *, int) |
Rational | lcm (Rational *, int) |
Rational Rational::get_den | ( | ) |
Definition at line 146 of file GMPrat.cc.
Rational Rational::get_num | ( | ) |
Definition at line 132 of file GMPrat.cc.
Rational Rational::operator++ | ( | int | ) |
Definition at line 260 of file GMPrat.cc.
Rational Rational::operator- | ( | ) |
Definition at line 182 of file GMPrat.cc.
Rational Rational::operator-- | ( | int | ) |
Definition at line 278 of file GMPrat.cc.
Rational& Rational::operator= | ( | char * | s | ) |
Rational Rational::operator~ | ( | ) |
Definition at line 203 of file GMPrat.cc.
Definition at line 439 of file GMPrat.cc.
Definition at line 451 of file GMPrat.cc.
Definition at line 481 of file GMPrat.cc.
Definition at line 512 of file GMPrat.cc.
Definition at line 190 of file GMPrat.cc.
Definition at line 414 of file GMPrat.cc.