Constants.h file
Mathematical constants and related utility functions.
This file provides commonly used mathematical constants with machine precision, as well as utility functions for checking special values.
Namespaces
- namespace Rodin
- The Rodin library for finite element methods and shape optimization.
- namespace Rodin::Math
- Spatial arithmetic, matrix operations, and sparse linear algebra.
Functions
- auto pi() -> Real constexpr
- Returns the mathematical constant to machine precision.
- auto epsilon() -> Real constexpr
- Returns the machine epsilon for Real type.
- auto zero() -> Real constexpr
- Returns the value zero.
- auto isZero(Real x) -> Boolean constexpr
- Checks if a value is exactly zero.
- auto one() -> Real constexpr
- Returns the value one.
- auto isOne(Real x) -> Boolean constexpr
- Checks if a value is exactly one.