approx.h File Reference
Provides facilities for working around rounding errors when dealing with real numbers.
More...
|
Namespaces |
| namespace | regina |
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.