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
 
template<typename T>
constexpr auto degree2rad_v = pi_v<T> / static_cast<T>(180)
 convert degree to radian (variable template)
 
constexpr auto degree2rad = degree2rad_v<amrex::Real>
 convert degree to radian
 

Detailed Description

Mathematical constants

Variable Documentation

◆ degree2rad

auto ablastr::constant::math::degree2rad = degree2rad_v<amrex::Real>
constexpr

convert degree to radian

◆ degree2rad_v

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

convert degree to radian (variable template)

◆ 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)