CAPD::DynSys Library  6.0.0
rationalNumber.h File Reference
#include <iostream>
#include <stdexcept>

Classes

class  rationalNumber< intType >
 

Functions

template<class intType >
rationalNumber< intType > operator- (const rationalNumber< intType > &v)
 
template<class intType >
rationalNumber< intType > operator+ (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
rationalNumber< intType > operator- (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
rationalNumber< intType > operator* (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
rationalNumber< intType > operator/ (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
int operator< (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
int operator> (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
int operator<= (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
int operator>= (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
int operator== (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
int operator!= (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
std::ostream & operator<< (std::ostream &out, const rationalNumber< intType > &v)
 
template<class intType >
std::istream & operator>> (std::istream &inp, rationalNumber< intType > &v)
 
template<class intType >
bool isDivisible (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2)
 
template<class intType >
bool isZero (const rationalNumber< intType > &v)
 

Function Documentation

◆ isDivisible()

template<class intType >
bool isDivisible ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ isZero()

template<class intType >
bool isZero ( const rationalNumber< intType > &  v)

◆ operator!=()

template<class intType >
int operator!= ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator*()

template<class intType >
rationalNumber< intType > operator* ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator+()

template<class intType >
rationalNumber< intType > operator+ ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator-() [1/2]

template<class intType >
rationalNumber< intType > operator- ( const rationalNumber< intType > &  v)

◆ operator-() [2/2]

template<class intType >
rationalNumber< intType > operator- ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator/()

template<class intType >
rationalNumber< intType > operator/ ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator<()

template<class intType >
int operator< ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator<<()

template<class intType >
std::ostream & operator<< ( std::ostream &  out,
const rationalNumber< intType > &  v 
)

◆ operator<=()

template<class intType >
int operator<= ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator==()

template<class intType >
int operator== ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator>()

template<class intType >
int operator> ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator>=()

template<class intType >
int operator>= ( const rationalNumber< intType > &  v1,
const rationalNumber< intType > &  v2 
)

◆ operator>>()

template<class intType >
std::istream & operator>> ( std::istream &  inp,
rationalNumber< intType > &  v 
)