MATLAB: lnx: log(x) log2(x):log2(x) log10(x):log10(x) 其他loga(x):由换底公式得到 C/C++: 同上,除了log2(x),C/C++没有以2为底的函数