log function template — Computes natural logarithm
template<typename T> valarray<T> log(const valarray<T>& a);
The log function computes the natural (base e) logarithm of each element of a.
log
e
a
log in <cmath>
<cmath>