log computes logarithms, by default natural logarithms,
log10 computes common (i.e., base 10) logarithms, and
log2 computes binary (i.e., base 2) logarithms.
The general form log(x, base) computes logarithms with base
base.
log1p(x) computes \(\log(1+x)\) accurately also for
\(|x| \ll 1\).
exp computes the exponential function.
expm1(x) computes \(\exp(x) - 1\) accurately also for
\(|x| \ll 1\).