double log(double num) 自然对数的#include <math.h> 加载这个库如果求log(a)b的话就数学方法吧f = log(b) / log(a);=============================你的答案就T=log(P)+log(H);记得#include <math.h>
http://www.douban.com/note/219705803/
http://bj007.blog.51cto.com/1701577/548932