Name

cos function template — Computes cosine

Synopsis

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

The cos function computes the cosine of each element of a.