Provides several mathematical constants as single-precision floating-point numbers.
More...
#include <ffmath.hpp>
|
static constexpr float | e () |
| The base of natural logarithms ( e ) given as a single-precision floating-point number.
|
|
static constexpr float | log2e () |
| The base 2 logarithm of e ( log_2 e ) given as a single-precision floating-point number.
|
|
static constexpr float | log10e () |
| The base 10 logarithm of e ( log_10 e ) given as a single-precision floating-point number.
|
|
static constexpr float | ln2 () |
| The natural logarithm of 2 ( ln 2 ) given as a single-precision floating-point number.
|
|
static constexpr float | ln10 () |
| The natural logarithm of 10 ( ln 10 ) given as a single-precision floating-point number.
|
|
static constexpr float | pi () |
| The circumference of a circle with diameter 1, ( π ) given as a single-precision floating-point number.
|
|
static constexpr float | inv_pi () |
| The inverse of π ( 1/π ) given as a single-precision floating-point number.
|
|
static constexpr float | inv_sqrtpi () |
| The inverse of the square root of π ( 1/√π ) given as a single-precision floating-point number.
|
|
static constexpr float | sqrt2 () |
| The square root of 2 ( √2 ) given as a single-precision floating-point number.
|
|
static constexpr float | sqrt3 () |
| The square root of 4 ( √4 ) given as a single-precision floating-point number.
|
|
static constexpr float | inv_sqrt2 () |
| The inverse of square root of 2 ( 1/√2 ) given as a single-precision floating-point number.
|
|
static constexpr float | inv_sqrt3 () |
| The inverse of square root of 2 ( 1/√2 ) given as a single-precision floating-point number.
|
|
static constexpr float | egamma () |
| Constant Euler-Mascheroni given as a single-precision floating-point number.
|
|
static constexpr float | phi () |
| The golden ratio, (1+√5)/2 given as a single-precision floating-point number.
|
|
static constexpr float | twice_pi () |
| Twice circumference of a circle with diameter 1, ( 2π ) given as a single-precision floating-point number.
|
|
static constexpr float | half_pi () |
| Half of π ( π/2 ) given as a single-precision floating-point number.
|
|
static constexpr float | quarter_pi () |
| A quarter of π ( π/4 ) given as a single-precision floating-point number.
|
|
static constexpr float | radian () |
| Radian, value of ( 180/π ) given as a single-precision floating-point number.
|
|
static constexpr float | lnpi () |
| The natural logarithm of π ( ln(π) ) given as a single-precision floating-point number.
|
|
static constexpr float | ln_sqrt_2pi () |
| The natural logarithm of the square root of 2π ( ln( √2π ) ) given as a single-precision floating-point number.
|
|
Provides several mathematical constants as single-precision floating-point numbers.
◆ e()
static constexpr float qlibs::ffmath::numbers::e |
( |
| ) |
|
|
inlinestaticconstexpr |
The base of natural logarithms ( e ) given as a single-precision floating-point number.
◆ egamma()
static constexpr float qlibs::ffmath::numbers::egamma |
( |
| ) |
|
|
inlinestaticconstexpr |
Constant Euler-Mascheroni given as a single-precision floating-point number.
◆ half_pi()
static constexpr float qlibs::ffmath::numbers::half_pi |
( |
| ) |
|
|
inlinestaticconstexpr |
Half of π ( π/2 ) given as a single-precision floating-point number.
◆ inv_pi()
static constexpr float qlibs::ffmath::numbers::inv_pi |
( |
| ) |
|
|
inlinestaticconstexpr |
The inverse of π ( 1/π ) given as a single-precision floating-point number.
◆ inv_sqrt2()
static constexpr float qlibs::ffmath::numbers::inv_sqrt2 |
( |
| ) |
|
|
inlinestaticconstexpr |
The inverse of square root of 2 ( 1/√2 ) given as a single-precision floating-point number.
◆ inv_sqrt3()
static constexpr float qlibs::ffmath::numbers::inv_sqrt3 |
( |
| ) |
|
|
inlinestaticconstexpr |
The inverse of square root of 2 ( 1/√2 ) given as a single-precision floating-point number.
◆ inv_sqrtpi()
static constexpr float qlibs::ffmath::numbers::inv_sqrtpi |
( |
| ) |
|
|
inlinestaticconstexpr |
The inverse of the square root of π ( 1/√π ) given as a single-precision floating-point number.
◆ ln10()
static constexpr float qlibs::ffmath::numbers::ln10 |
( |
| ) |
|
|
inlinestaticconstexpr |
The natural logarithm of 10 ( ln 10 ) given as a single-precision floating-point number.
◆ ln2()
static constexpr float qlibs::ffmath::numbers::ln2 |
( |
| ) |
|
|
inlinestaticconstexpr |
The natural logarithm of 2 ( ln 2 ) given as a single-precision floating-point number.
◆ ln_sqrt_2pi()
static constexpr float qlibs::ffmath::numbers::ln_sqrt_2pi |
( |
| ) |
|
|
inlinestaticconstexpr |
The natural logarithm of the square root of 2π ( ln( √2π ) ) given as a single-precision floating-point number.
◆ lnpi()
static constexpr float qlibs::ffmath::numbers::lnpi |
( |
| ) |
|
|
inlinestaticconstexpr |
The natural logarithm of π ( ln(π) ) given as a single-precision floating-point number.
◆ log10e()
static constexpr float qlibs::ffmath::numbers::log10e |
( |
| ) |
|
|
inlinestaticconstexpr |
The base 10 logarithm of e ( log_10 e ) given as a single-precision floating-point number.
◆ log2e()
static constexpr float qlibs::ffmath::numbers::log2e |
( |
| ) |
|
|
inlinestaticconstexpr |
The base 2 logarithm of e ( log_2 e ) given as a single-precision floating-point number.
◆ phi()
static constexpr float qlibs::ffmath::numbers::phi |
( |
| ) |
|
|
inlinestaticconstexpr |
The golden ratio, (1+√5)/2 given as a single-precision floating-point number.
◆ pi()
static constexpr float qlibs::ffmath::numbers::pi |
( |
| ) |
|
|
inlinestaticconstexpr |
The circumference of a circle with diameter 1, ( π ) given as a single-precision floating-point number.
◆ quarter_pi()
static constexpr float qlibs::ffmath::numbers::quarter_pi |
( |
| ) |
|
|
inlinestaticconstexpr |
A quarter of π ( π/4 ) given as a single-precision floating-point number.
◆ radian()
static constexpr float qlibs::ffmath::numbers::radian |
( |
| ) |
|
|
inlinestaticconstexpr |
Radian, value of ( 180/π ) given as a single-precision floating-point number.
◆ sqrt2()
static constexpr float qlibs::ffmath::numbers::sqrt2 |
( |
| ) |
|
|
inlinestaticconstexpr |
The square root of 2 ( √2 ) given as a single-precision floating-point number.
◆ sqrt3()
static constexpr float qlibs::ffmath::numbers::sqrt3 |
( |
| ) |
|
|
inlinestaticconstexpr |
The square root of 4 ( √4 ) given as a single-precision floating-point number.
◆ twice_pi()
static constexpr float qlibs::ffmath::numbers::twice_pi |
( |
| ) |
|
|
inlinestaticconstexpr |
Twice circumference of a circle with diameter 1, ( 2π ) given as a single-precision floating-point number.