libfxd 0.2.dev
A fixed-point library for C++.
Loading...
Searching...
No Matches
numbers.hpp File Reference
#include <numbers>
#include "concepts.hpp"

Go to the source code of this file.

Namespaces

namespace  std
 STL namespace.
 
namespace  std::numbers
 Specialization for mathematical constants.
 

Macros

#define LIBFXD_CONSTEXPR   const
 
#define LIBFXD_NUMBER(c)
 

Variables

template<fxd::fixed_point Fxd>
const Fxd e_v< Fxd >
 Fixed-point constant for \( e \).
 
template<fxd::fixed_point Fxd>
const Fxd egamma_v< Fxd >
 Fixed-point constant for \( \gamma \).
 
template<fxd::fixed_point Fxd>
const Fxd inv_pi_v< Fxd >
 Fixed-point constant for \( 1 \over \pi \).
 
template<fxd::fixed_point Fxd>
const Fxd inv_sqrt3_v< Fxd >
 Fixed-point constant for \( 1 \over \sqrt 3 \).
 
template<fxd::fixed_point Fxd>
const Fxd inv_sqrtpi_v< Fxd >
 Fixed-point constant for \( 1 \over \sqrt \pi \).
 
template<fxd::fixed_point Fxd>
const Fxd ln10_v< Fxd >
 Fixed-point constant for \( \ln 10 \).
 
template<fxd::fixed_point Fxd>
const Fxd ln2_v< Fxd >
 Fixed-point constant for \( \ln 2 \).
 
template<fxd::fixed_point Fxd>
const Fxd log10e_v< Fxd >
 Fixed-point constant for \( \log _ {10} e \).
 
template<fxd::fixed_point Fxd>
const Fxd log2e_v< Fxd >
 Fixed-point constant for \( \log _ 2 e \).
 
template<fxd::fixed_point Fxd>
const Fxd phi_v< Fxd >
 Fixed-point constant for \( \phi \).
 
template<fxd::fixed_point Fxd>
const Fxd pi_v< Fxd >
 Fixed-point constant for \( \pi \).
 
template<fxd::fixed_point Fxd>
const Fxd sqrt2_v< Fxd >
 Fixed-point constant for \( \sqrt 2 \).
 
template<fxd::fixed_point Fxd>
const Fxd sqrt3_v< Fxd >
 Fixed-point constant for \( \sqrt 3 \).
 

Macro Definition Documentation

◆ LIBFXD_CONSTEXPR

#define LIBFXD_CONSTEXPR   const

Definition at line 22 of file numbers.hpp.

◆ LIBFXD_NUMBER

#define LIBFXD_NUMBER (   c)
Value:
template<fxd::fixed_point Fxd> \
inline LIBFXD_CONSTEXPR \
Fxd c<Fxd> = Fxd{std::numbers:: c <typename std::numeric_limits<Fxd>::float_type>}

Definition at line 25 of file numbers.hpp.