double log (double x);
double log ( double x); float logf ( float x);long double logl (long double x);
double log ( double x); float log ( float x);long double log (long double x);
double log (double x); float log (float x);long double log (long double x); double log (T x); // additional overloads for integral types
<cmath>
) 中为整型提供了额外的重载:这些重载在计算前有效地将 x 转换为 double
。<complex>
和 <valarray>
中也被重载(请参阅 complex log 和 valarray log)。
|
|
log(5.500000) = 1.704748 |