Difference between revisions of "cpp/numeric/math/log1p"
From cppreference.com
(Updating "see also" listing.) |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 40: | Line 40: | ||
{{dcl list template | cpp/numeric/math/dcl list log2}} | {{dcl list template | cpp/numeric/math/dcl list log2}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | [[de:cpp/numeric/math/log1p]] | ||
+ | [[es:cpp/numeric/math/log1p]] | ||
+ | [[fr:cpp/numeric/math/log1p]] | ||
+ | [[it:cpp/numeric/math/log1p]] | ||
+ | [[ja:cpp/numeric/math/log1p]] | ||
+ | [[pt:cpp/numeric/math/log1p]] | ||
+ | [[ru:cpp/numeric/math/log1p]] | ||
+ | [[zh:cpp/numeric/math/log1p]] |
Revision as of 21:40, 2 November 2012
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 log1p( float arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >double log1p( double arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >long double log1p( long double arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >double log1p( Integral arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Computes the natural (base e) logarithm of 1+arg. This function is more precise than the expression std::log(1+arg) if arg
is close to zero.
Parameters
arg | - | floating point value |
Return value
ln(1+arg)
Domain error occurs if arg
is negative. NAN is returned in that case.
Range error occurs if arg
is 0. -HUGE_VAL is returned in that case.