Name
atan2 function template — Computes inverse tangent of two arguments
Synopsis
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
.
See Also
atan function
template, atan2
in <cmath>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.