ESTER
Evolution STEllaire en Rotation
|
#include <symbolic.h>
Public Member Functions | |
rational (int num=1, int den=1) | |
int | num () const |
int | den () const |
double | eval () const |
rational | operator+ (const rational &q) const |
rational | operator+ () const |
rational | operator- () const |
rational | operator- (const rational &q) const |
rational | operator* (const rational &q) const |
rational | inv () const |
rational | operator/ (const rational &q) const |
rational & | operator+= (const rational &q) |
rational & | operator-= (const rational &q) |
rational & | operator*= (const rational &q) |
rational & | operator/= (const rational &q) |
rational | pow (int) const |
bool | operator== (const rational &q) const |
bool | operator!= (const rational &q) const |
bool | operator> (const rational &q) const |
bool | operator< (const rational &q) const |
bool | operator>= (const rational &q) const |
bool | operator<= (const rational &q) const |
Private Member Functions | |
rational & | reduce () |
Static Private Member Functions | |
static int | gcd (int a, int b) |
Private Attributes | |
int | n |
int | d |
Friends | |
std::ostream & | operator<< (std::ostream &os, const rational &) |
rational::rational | ( | int | num = 1 , |
int | den = 1 |
||
) |
int rational::den | ( | ) | const |
double rational::eval | ( | ) | const |
|
staticprivate |
rational rational::inv | ( | ) | const |
int rational::num | ( | ) | const |
|
inline |
|
inline |
rational rational::operator- | ( | ) | const |
bool rational::operator< | ( | const rational & | q | ) | const |
|
inline |
bool rational::operator== | ( | const rational & | q | ) | const |
bool rational::operator> | ( | const rational & | q | ) | const |
|
inline |
rational rational::pow | ( | int | q | ) | const |
|
private |
|
friend |
|
private |
|
private |