std::exp, std::expf, std::expl
From cppreference.com
Defined in header <cmath>
|
||
(1) | ||
float exp ( float num ); double exp ( double num ); |
(until C++23) | |
/*floating-point-type*/ exp ( /*floating-point-type*/ num ); |
(since C++23) (constexpr since C++26) |
|
float expf( float num ); |
(2) | (since C++11) (constexpr since C++26) |
long double expl( 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 exp ( Integer num ); |
(A) | (constexpr since C++26) |
1-3) Computes e (Euler's number, 2.7182818...) raised to the given power num. The library provides overloads of
std::exp
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::exp on v_num.
|
(since C++26) |
A) Additional overloads are provided for all integer types, which are treated as double.
|
(since C++11) |
Contents |
[edit] Parameters
num | - | floating-point or integer value |
[edit] Return value
If no errors occur, the base-e exponential of num (enum
) is returned.
If a range error occurs due to overflow,