8#ifndef model_Rational_h_
9#define model_Rational_h_
21 static int gcd(
const size_t &
a,
const size_t &
b);
24 static int sgn(
const long int &
a);
34 Rational(
const long int &n_in,
const long int &d_in);
74 struct NumTraits<
model::Rational>
Rational operator-(const long int &i) const
Rational operator/(const long int &i) const
bool operator==(const long int &other) const
friend std::ostream & operator<<(std::ostream &os, const Rational &r)
Rational operator-(const Rational &r2) const
Rational operator*(const Rational &r2) const
Rational operator+(const Rational &r2) const
bool operator!=(const long int &other) const
Rational operator*(const long int &i) const
Rational operator/(const Rational &r2) const
Rational operator+(const long int &i) const