#include <rational.h>
Definition at line 15 of file rational.h.
◆ rationalt() [1/3]
◆ rationalt() [2/3]
◆ rationalt() [3/3]
rationalt::rationalt |
( |
int |
i | ) |
|
|
inlineexplicit |
◆ get_denominator()
const mp_integer& rationalt::get_denominator |
( |
| ) |
const |
|
inline |
◆ get_numerator()
const mp_integer& rationalt::get_numerator |
( |
| ) |
const |
|
inline |
◆ invert()
void rationalt::invert |
( |
| ) |
|
◆ is_negative()
bool rationalt::is_negative |
( |
| ) |
const |
|
inline |
◆ is_one()
bool rationalt::is_one |
( |
| ) |
const |
|
inline |
◆ is_zero()
bool rationalt::is_zero |
( |
| ) |
const |
|
inline |
◆ normalize()
void rationalt::normalize |
( |
| ) |
|
|
protected |
◆ operator!=()
◆ operator*=()
◆ operator+=()
◆ operator-()
◆ operator-=()
◆ operator/=()
◆ operator<()
bool rationalt::operator< |
( |
const rationalt & |
n | ) |
const |
|
inline |
◆ operator<=()
bool rationalt::operator<= |
( |
const rationalt & |
n | ) |
const |
|
inline |
◆ operator==()
bool rationalt::operator== |
( |
const rationalt & |
n | ) |
const |
|
inline |
◆ operator>()
bool rationalt::operator> |
( |
const rationalt & |
n | ) |
const |
|
inline |
◆ operator>=()
bool rationalt::operator>= |
( |
const rationalt & |
n | ) |
const |
|
inline |
◆ same_denominator()
void rationalt::same_denominator |
( |
rationalt & |
n | ) |
|
|
protected |
◆ denominator
◆ numerator
The documentation for this class was generated from the following files: