WarpX
Loading...
Searching...
No Matches
ablastr::constant::math Namespace Reference

Variables

template<typename T>
constexpr auto pi_v = static_cast<T>(3.14159265358979323846)
 ratio of a circle's circumference to its diameter (variable template)
 
template<typename T>
constexpr auto tau_v = static_cast<T>(2.0 * pi_v<double>)
 https://tauday.com/tau-manifesto (variable template)
 
constexpr auto pi = pi_v<amrex::Real>
 ratio of a circle's circumference to its diameter
 
constexpr auto tau = tau_v<amrex::Real>
 https://tauday.com/tau-manifesto
 

Detailed Description

Mathematical constants

Variable Documentation

◆ pi

auto ablastr::constant::math::pi = pi_v<amrex::Real>
constexpr

ratio of a circle's circumference to its diameter

◆ pi_v

template<typename T>
auto ablastr::constant::math::pi_v = static_cast<T>(3.14159265358979323846)
constexpr

ratio of a circle's circumference to its diameter (variable template)

◆ tau

auto ablastr::constant::math::tau = tau_v<amrex::Real>
constexpr

◆ tau_v

template<typename T>
auto ablastr::constant::math::tau_v = static_cast<T>(2.0 * pi_v<double>)
constexpr

https://tauday.com/tau-manifesto (variable template)