74 Numeric
abs(
const Numeric& );
75 Numeric
mod(
const Numeric&,
const Numeric& );
76 Numeric
lcm(
const Numeric&,
const Numeric& );
77 Numeric
gcd(
const Numeric&,
const Numeric& );
78 Numeric
operator+(
const Numeric&,
const Numeric& );
79 Numeric
operator-(
const Numeric&,
const Numeric& );
80 Numeric
operator*(
const Numeric&,
const Numeric& );
81 Numeric
operator/(
const Numeric&,
const Numeric& );
82 Numeric&
operator+=( Numeric&,
const Numeric& );
83 Numeric&
operator-=( Numeric&,
const Numeric& );
84 Numeric&
operator*=( Numeric&,
const Numeric& );
85 Numeric&
operator/=( Numeric&,
const Numeric& );
89 std::ostream&
operator <<( std::ostream&,
const Numeric& );
const Rational & content() const
bool operator>=(const Numeric &) const
Compares whether this Numeric is greater or equal than the given one.
bool operator<=(const Numeric &) const
Compares whether this Numeric is less or equal than the given one.
Numeric & operator=(int)
Cast from an integer.
bool operator>(const Numeric &) const
Compares whether this Numeric is greater than the given one.
bool operator<(const Numeric &) const
Compares whether this Numeric is less than the given one.
bool is_positive() const
Checks whether this Numeric corresponds to a positive rational number.
Numeric()
Default constructor.
bool operator==(const Numeric &) const
Compares whether this Numeric and the given one are equal.
bool operator!=(const Numeric &) const
Compares whether this Numeric and the given one are not equal.
Numeric & operator+=(Numeric &_valueA, const Numeric &_valueB)
Adds the value of the second given Numeric to the second given Numeric.
Numeric lcm(const Numeric &_valueA, const Numeric &_valueB)
Calculates the least common multiple of the two arguments.
std::ostream & operator<<(std::ostream &_out, const Numeric &_value)
Prints the given Numerics representation on the given output stream.
Numeric & operator++(Numeric &_value)
Increments the given Numeric by one.
Numeric operator-(const Numeric &_valueA, const Numeric &_valueB)
Calculates the difference between the two given Numerics.
Numeric abs(const Numeric &_value)
Calculates the absolute value of the given Numeric.
Numeric & operator*=(Numeric &_valueA, const Numeric &_valueB)
Multiplies the second given Numeric to the first given Numeric.
Numeric mod(const Numeric &_valueA, const Numeric &_valueB)
Calculates the result of the first argument modulo the second argument.
Numeric operator*(const Numeric &_valueA, const Numeric &_valueB)
Calculates the product of the two given Numerics.
Numeric operator/(const Numeric &_valueA, const Numeric &_valueB)
Calculates the division of the two given Numerics.
Numeric & operator--(Numeric &_value)
Decrements the given Numeric by one.
Numeric operator+(const Numeric &_valueA, const Numeric &_valueB)
Calculates the sum of the two given Numerics.
Numeric & operator-=(Numeric &_valueA, const Numeric &_valueB)
Subtracts the second given Numeric to the first given Numeric.
Numeric gcd(const Numeric &_valueA, const Numeric &_valueB)
Calculates the greatest common divisor of the two arguments.
Numeric & operator/=(Numeric &_valueA, const Numeric &_valueB)
Divides the first given Numeric by the second given Numeric.
Class to create the formulas for axioms.