double log1p (double x); float log1pf (float x);long double log1pl (long double x);
double log1p (double x); float log1p (float x);long double log1p (long double x); double log1p (T x); // additional overloads for integral types
log(1+x)
更精确。-1
,则会发生定义域错误。(1+x)
的自然对数。-1
,会导致定义域错误。-1
,可能会导致极点错误(取决于库的实现)。
|
|
log1p (1.000000) = 0.693147 |