Skip to content

Latest commit

 

History

History
105 lines (61 loc) · 2.41 KB

File metadata and controls

105 lines (61 loc) · 2.41 KB

FLOAT16_EULER_GAMMA

The Euler–Mascheroni constant.

The Euler–Mascheroni constant γ is defined as the limiting difference between the harmonic series and the natural logarithm:

$$\gamma = \lim_{n \to \infty} \left( \sum_{k=1}^{n} \frac{1}{k} - \ln(n) \right)$$

Usage

var FLOAT16_EULER_GAMMA = require( '@stdlib/constants/float16/eulergamma' );

FLOAT16_EULER_GAMMA

The Euler–Mascheroni constant.

var bool = ( FLOAT16_EULER_GAMMA === 0.5771484375 );
// returns true

Notes

The value is approximately 0.5772156649015328606... in double precision. Due to the limited precision of half-precision floating-point format (float16), the constant is rounded to 0.5771484375.

Examples

var FLOAT16_EULER_GAMMA = require( '@stdlib/constants/float16/eulergamma' );

console.log( FLOAT16_EULER_GAMMA );
// => 0.5771484375