Callable object computing arc tangent in degrees.
Defined in Header
#include <eve/module/math.hpp>
{
template< eve::floating_value T >
}
constexpr callable_atand_ atand
Callable object computing arc tangent in degrees.
Definition: atand.hpp:58
Definition: all_of.hpp:22
Parameters
x
: floating real value.
Return value
Returns the elementwise arc cotangent of the input in the range \([-90, 90]\).
In particular:
- If the element is \(\pm0\), \(\pm0\) is returned.
- If the element is \(\pm\infty\), \(\pm\frac\pi2\) is returned.
- If the element is a
Nan
, NaN
is returned.
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = { 0.0f, 1.0f, -1.0f, -0.5f};
std::cout
<< "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
;
float xf = 1.0f;
float yf = -2.0f;
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65