approx.h File Reference

Provides facilities for working around rounding errors when dealing with real numbers. More...


Namespaces

namespace  regina
 Contains the entire Regina calculation engine.

Functions

template<class R >
bool regina::isZero (R x)
 Determines whether the given real number is zero.
template<class R >
bool regina::isNonZero (R x)
 Determines whether the given real number is non-zero.
template<class R >
bool regina::isPositive (R x)
 Determines whether the given real number is strictly positive.
template<class R >
bool regina::isNegative (R x)
 Determines whether the given real number is strictly negative.
template<class R >
bool regina::isNonNegative (R x)
 Determines whether the given real number is non-negative.
template<class R >
bool regina::isNonPositive (R x)
 Determines whether the given real number is non-positive.

Variables

const double regina::epsilon
 A very small positive real designed to accommodate for rounding error.


Detailed Description

Provides facilities for working around rounding errors when dealing with real numbers.


Copyright © 1999-2009, Ben Burton
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).