These functions allows access to scalar and SIMD values of some mathematical constants. In particular, all libc++ constants are here, sometimes with a different name.
All floating mathematical constants supports a regular call and two decorated calls:
- the regular call provides the floating point representation that is nearest to the mathematical value,
- eve::upper provides the least representable value that is greater than the mathematical value,
- eve::lower provides the greatest representable value that is less than the mathematical value,
About constants names:
- When a name contains an _ it means that preceding the underscore is a 'function or multiplication that must be applied to the following parts:
- log_2 stands for \(\log(2)\) the natural logarithm of 2
- log2_e stands for \(\log2(e)\) the logarithm in base 2 of the euler constant,
- inv_pi is the inverse of \(\pi\).
- four_pio_3 stands for \(4\pi/3\) (the
o meanings over).