C++中的log函数

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Jeff_Winger/article/details/82497884

 

引入#include<cmath>

以e为底:log(exp(n))

以10为底:log10(n)

以m为底:log(n)/log(m)

猜你喜欢

转载自blog.csdn.net/Jeff_Winger/article/details/82497884
今日推荐