cos function template — Computes cosine
template<typename T> valarray<T> cos(const valarray<T>& a);
The cos function computes the cosine of each element of a.
cos
a
cos in <cmath>
<cmath>