75 mContent( new
Rational( *_value.mContent ) )
241 return ( this->
content() > 0 );
250 return ( this->
content() < 0 );
259 return ( this->
content() == 0 );
268 return ( this->
denom() == 1 );
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.