How to express ln(x) in c++?

I want to calculate ln(x), but in my code, I use log(x), is it right? I also look at some functions of the TMath, and find logE(), log(), but I couldn’t find their meanings, coulde anyone explain those to me? and what i should use to calculate ln(x)? Thanks!

Hi,

if you mean to calculate the base e logarithm of a number log is the right function. Please refer to en.cppreference.com/w/cpp/numeric/math/log for further details.

Danilo