E.V.E  0.1-beta

◆ atand

eve::atand = {}
inlineconstexpr

Callable object computing atand.

Required header: #include <eve/function/atand.hpp>

Members Functions

Member Effect
operator() the computation of atand

auto operator()(floating_value auto x) const noexcept;
Definition: value.hpp:83

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.

Supported decorators

Example

See it live on Compiler Explorer

#include <eve/function/atand.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'
<< "-> atand(pf) = " << eve::atand(pf) << '\n';
float xf = 1.0f;
float yf = -2.0f;
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> atand(xf) = " << eve::atand(xf) << '\n'
<< "<- yf = " << yf << '\n'
<< "-> atand(yf) = " << eve::atand(yf) << '\n';
return 0;
}
constexpr callable_atand_ atand
Callable object computing atand.
Definition: atand.hpp:70
Wrapper for SIMD registers.
Definition: wide.hpp:65