请问用log代替ln有无问题?
谢谢
2 个解决方案
#1
网上搜的:
ln:
double x = blablabla;
double y = Math.Log(x);
lg:
double x = blablabla;
double y = Math.Log10(x);
任意底a对数:
double a = some_constant;
double x = blablabla;
double y = Math.Log(x,a);
ln:
double x = blablabla;
double y = Math.Log(x);
lg:
double x = blablabla;
double y = Math.Log10(x);
任意底a对数:
double a = some_constant;
double x = blablabla;
double y = Math.Log(x,a);
#2
其他不说,敲代码的时候没有代码提示吗?代码提示上面函数说明吗?
#1
网上搜的:
ln:
double x = blablabla;
double y = Math.Log(x);
lg:
double x = blablabla;
double y = Math.Log10(x);
任意底a对数:
double a = some_constant;
double x = blablabla;
double y = Math.Log(x,a);
ln:
double x = blablabla;
double y = Math.Log(x);
lg:
double x = blablabla;
double y = Math.Log10(x);
任意底a对数:
double a = some_constant;
double x = blablabla;
double y = Math.Log(x,a);
#2
其他不说,敲代码的时候没有代码提示吗?代码提示上面函数说明吗?