std::log1p
Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td><cmath>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td ><td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Computes the natural (base Template:cpp) logarithm of Template:cpp. This function is more precise than the expression Template:cpp if arg
is close to zero.
Parameters
arg | - | floating point value |
Return value
ln(1+arg)
Domain error occurs if arg
is negative. Template:cpp is returned in that case.
Range error occurs if arg
is Template:cpp. Template:cpp is returned in that case.