Difference between revisions of "cpp/numeric/math/expm1"
From cppreference.com
m (typo) |
m (Text replace - "{{mark c++11 feature}}" to "{{mark since c++11}}") |
||
Line 3: | Line 3: | ||
{{ddcl list begin}} | {{ddcl list begin}} | ||
{{ddcl list header | cmath}} | {{ddcl list header | cmath}} | ||
− | {{ddcl list item | notes={{mark c++11 | + | {{ddcl list item | notes={{mark since c++11}} | |
float expm1( float arg ); | float expm1( float arg ); | ||
}} | }} | ||
− | {{ddcl list item | notes={{mark c++11 | + | {{ddcl list item | notes={{mark since c++11}}| |
double expm1( double arg ); | double expm1( double arg ); | ||
}} | }} | ||
− | {{ddcl list item | notes={{mark c++11 | + | {{ddcl list item | notes={{mark since c++11}}| |
long double expm1( long double arg ); | long double expm1( long double arg ); | ||
}} | }} |
Revision as of 14:51, 24 December 2011
Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<cmath>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >float expm1( float arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >double expm1( double arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >long double expm1( long double arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Computes the e (Euler's number, 2.7182818
) raised to the given power arg
, minus Template:cpp. This function is more accurate than the expression Template:cpp if arg
is close to zero.
Parameters
arg | - | floating point value |
Return value
earg-1
If the result is too large for the underlying type, range error occurs and Template:cpp is returned.