QUGaR 0.0.4
Loading...
Searching...
No Matches
numbers.hpp File Reference

Declaration of constant values. More...

#include <qugar/types.hpp>
#include <limits>
#include <numbers>
Include dependency graph for numbers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  qugar
 QUGaR's main namespace.
 
namespace  qugar::numbers
 Numbers' namespace.
 

Variables

constexpr real qugar::numbers::zero { 0.0 }
 Real zero value.
 
constexpr real qugar::numbers::one { 1.0 }
 Real one value.
 
constexpr real qugar::numbers::two { 2.0 }
 Real two value.
 
constexpr real qugar::numbers::three { 3.0 }
 Real three value.
 
constexpr real qugar::numbers::four { 4.0 }
 Real four value.
 
constexpr real qugar::numbers::five { 5.0 }
 Real five value.
 
constexpr real qugar::numbers::six { 6.0 }
 Real six value.
 
constexpr real qugar::numbers::seven { 7.0 }
 Real seven value.
 
constexpr real qugar::numbers::eight { 8.0 }
 Real eight value.
 
constexpr real qugar::numbers::nine { 9.0 }
 Real nine value.
 
constexpr real qugar::numbers::half { 0.5 }
 Real one over two value.
 
constexpr real qugar::numbers::one_third { 1.0 / 3.0 }
 Real one third value.
 
constexpr real qugar::numbers::two_thirds { 2.0 / 3.0 }
 Real two thirds value.
 
constexpr real qugar::numbers::four_thirds { 4.0 / 3.0 }
 Real four thirds value.
 
constexpr real qugar::numbers::one_quarter { 0.25 }
 Real one quarter value.
 
constexpr real qugar::numbers::three_quarters { 0.75 }
 Real three quarters value.
 
constexpr real qugar::numbers::pi { std::numbers::pi_v<real> }
 Pi.
 
constexpr real qugar::numbers::infty { std::numeric_limits<real>::infinity() }
 Infinity.
 
constexpr real qugar::numbers::eps = std::numeric_limits<real>::epsilon()
 Machine epsilon.
 
constexpr real qugar::numbers::near_eps = real{ 10.0 } * eps
 Near machine epsilon (10 times the machine precision.
 

Detailed Description

Declaration of constant values.

Author
Pablo Antolin (pablo.nosp@m..ant.nosp@m.olin@.nosp@m.epfl.nosp@m..ch)
Date
2025-01-21