atan2 function template — Computes inverse tangent of two arguments
template<typename T> valarray<T> atan2(const valarray<T>& b, const valarray<T>& a); template<typename T> valarray<T> atan2(const valarray<T>& b, const T& x); template<typename T> valarray<T> atan2(const T& y, const valarray<T>& a);
The atan2
function computes
the inverse tangent of y/x
, in
which y
is a scalar or an element
of b
, and x
is a scalar or an element of a
.