Mathematical constants backported from C++20 <numbers>.

Variables

Name

Description

e

Euler's number.

e_v

Euler's number e for floating‐point type T.

ef

Euler's number as float.

egamma

Euler‐Mascheroni constant.

egamma_v

Euler‐Mascheroni constant for floating‐point type T.

egammaf

Euler‐Mascheroni constant as float.

inv_pi

Reciprocal of pi.

inv_pi_v

Reciprocal of pi for floating‐point type T.

inv_pif

Reciprocal of pi as float.

inv_pis

High‐precision decimal digits of 1/pi.

inv_sqrt2

Reciprocal of the square root of 2.

inv_sqrt2_v

Reciprocal of the square root of 2 for floating‐point type T.

inv_sqrt2f

Reciprocal of sqrt(2) as float.

inv_sqrt3

Reciprocal of the square root of 3.

inv_sqrt3_v

Reciprocal of the square root of 3 for floating‐point type T.

inv_sqrt3f

Reciprocal of sqrt(3) as float.

inv_sqrtpi

Reciprocal of the square root of pi.

inv_sqrtpi_v

Reciprocal of the square root of pi for floating‐point type T.

inv_sqrtpif

Reciprocal of sqrt(pi) as float.

ln10

Natural logarithm of 10.

ln10_v

Natural logarithm of 10 for floating‐point type T.

ln10f

Natural logarithm of 10 as a float constant.

ln2

Natural logarithm of 2.

ln2_v

Natural logarithm of 2 for floating‐point type T.

ln2f

Natural logarithm of 2 as float.

log10e

Base‐10 logarithm of e.

log10e_v

Base‐10 logarithm of e for floating‐point type T.

log10ef

Base‐10 logarithm of e as float.

log2e

Base‐2 logarithm of e.

log2e_v

Base‐2 logarithm of e for floating‐point type T.

log2ef

Base‐2 logarithm of e as float.

phi

Golden ratio.

phi_v

Golden ratio for floating‐point type T.

phif

Golden ratio as float.

pi

The mathematical constant pi.

pi_v

The mathematical constant pi for floating‐point type T.

pif

Pi as float.

pis

High‐precision decimal digits of pi.

sqrt2

Square root of 2.

sqrt2_v

Square root of 2 for floating‐point type T.

sqrt2f

Sqrt(2) as float.

sqrt3

Square root of 3.

sqrt3_v

Square root of 3 for floating‐point type T.

sqrt3f

Sqrt(3) as float.

sqrtpi

Sqrt(pi) as double.

sqrtpi_v

Sqrt(pi) constant for floating‐point type T.

sqrtpif

Sqrt(pi) as float.

Created with MrDocs