Namespaces
Variants
Views
Actions

std::expm1

From cppreference.com
< cpp‎ | numeric‎ | math
Revision as of 15:04, 17 January 2012 by Cubbi (Talk | contribs)

Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cmath>
</td>

<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> <tr class="t-dcl ">

<td >
double      expm1( Integral 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.

See also

Template:cpp/numeric/math/dcl list expTemplate:cpp/numeric/math/dcl list exp2