std::expm1, std::expm1f, std::expm1l
From cppreference.com
Defined in header <cmath>
|
||
(1) | ||
float expm1 ( float num ); double expm1 ( double num ); |
(until C++23) | |
/*floating-point-type*/ expm1 ( /*floating-point-type*/ num ); |
(since C++23) (constexpr since C++26) |
|
float expm1f( float num ); |
(2) | (since C++11) (constexpr since C++26) |
long double expm1l( long double num ); |
(3) | (since C++11) (constexpr since C++26) |
SIMD overload (since C++26) |
||
Defined in header <simd>
|
||
template< /*math-floating-point*/ V > constexpr /*deduced-simd-t*/<V> |
(S) | (since C++26) |
Additional overloads (since C++11) |
||
Defined in header <cmath>
|
||
template< class Integer > double expm1 ( Integer num ); |
(A) | (constexpr since C++26) |
1-3) Computes the e (Euler's number, 2.7182818...) raised to the given power num, minus 1.0. This function is more accurate than the expression std::exp(num) - 1.0 if num is close to zero. The library provides overloads of
std::expm1
for all cv-unqualified floating-point types as the type of the parameter.(since C++23)
S) The SIMD overload performs an element-wise
std::expm1 on v_num.
|
(since C++26) |
A) Additional overloads are provided for all integer types, which are treated as double.
|
(since C++11) |
Contents |