Name

log function template — Computes natural logarithm

Synopsis

template<typename T> valarray<T> log(const valarray<T>& a);

The log function computes the natural (base e) logarithm of each element of a.