C语言求对数 C语言关于对数仅提供两种方法: y=log(double x)表示数学中的 ln(x) y=log10(double x)表示数学中的 lg(x) y=log a(b)要进行变换log(b)/log(a)