E.V.E
v2022.09.01

◆ asinpi

eve::asinpi = {}
inlineconstexpr

Callable object computing computing the arc sine in \(\pi\) multiples.

Defined in Header

#include <eve/module/math.hpp>

Callable Signatures

namespace eve
{
template< eve::floating_value T >
T asinpi(T x) noexcept;
}
constexpr callable_asinpi_ asinpi
Callable object computing computing the arc sine in multiples.
Definition: asinpi.hpp:58
Definition: all_of.hpp:22

Parameters

x: floating real value.

Return value

Returns the elementwise arc sine of the input in the range \([-\frac12, \frac12]\).

In particular:

  • If the element is \(1\), \(+0\) is returned.
  • If the element \(|x| > 1\), NaN is returned.
  • If the element is a Nan, NaN is returned.

Example

#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = { 0.0f, 1.0f, -1.0f, -2.0f
std::cout
<< "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> asinpi(pf) = " << eve::asinpi(pf) << '\n'
;
float xf = 1.0f;
float yf = eve::nan(eve::as<float>());
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> asinpi(xf) = " << eve::asinpi(xf) << '\n'
<< "<- yf = " << yf << '\n'
<< "-> asinpi(yf) = " << eve::asinpi(yf) << '\n';
return 0;
}
constexpr callable_nan_ nan
Computes the IEEE NaN constant.
Definition: nan.hpp:53
constexpr callable_minf_ minf
Computes the -infinity ieee value.
Definition: minf.hpp:60
constexpr callable_mindenormal_ mindenormal
Computes the smallest denormal positive value.
Definition: mindenormal.hpp:59
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65