![]() |
#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 150 of file GMPrat.cc.
Rational Rational::get_num | ( | ) |
Definition at line 136 of file GMPrat.cc.
Rational Rational::operator++ | ( | int | ) |
Definition at line 264 of file GMPrat.cc.
Rational Rational::operator- | ( | ) |
Definition at line 186 of file GMPrat.cc.
Rational Rational::operator-- | ( | int | ) |
Definition at line 282 of file GMPrat.cc.
Rational& Rational::operator= | ( | char * | s | ) |
Rational Rational::operator~ | ( | ) |
Definition at line 207 of file GMPrat.cc.
Definition at line 443 of file GMPrat.cc.
Definition at line 455 of file GMPrat.cc.
Definition at line 485 of file GMPrat.cc.
Definition at line 516 of file GMPrat.cc.
Definition at line 194 of file GMPrat.cc.
Definition at line 418 of file GMPrat.cc.