E.V.E
v2023.02.15

◆ airy

eve::airy = {}
inlineconstexpr

Computes the airy functions values \( Ai(x)\) and \( Bi(x)\).

This function is designed to be faster than two separate calls to eve::airy_ai and eve::airy_bi.

Defined in header

#include <eve/module/bessel.hpp>

Callable Signatures

namespace eve
{
template< eve::floating_ordered_value T >
kumi::tuple<T, T> airy(T x) noexcept;
}
constexpr callable_airy_ airy
Computes the airy functions values and .
Definition: airy.hpp:53
Definition: abi.hpp:18

Parameters

Return value

The tuple {eve::airy_ai (x), eve::airy_bi (x)} is returned.

Example

#include <eve/module/bessel.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {0.5, -1.5, 0.1, -1.0, 19.0, 25.0, 21.5, 10000.0};
auto [ai, bi] = eve::airy(pf);
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> ai = " << ai << '\n'
<< "-> bi = " << bi << '\n';
double xd = -1.0;
auto [a, b] = eve::airy(xd);
std::cout << "---- scalar" << '\n'
<< "<- xd = " << xd << '\n'
<< "-> a = " << a << '\n'
<< "-> b = " << b << '\n';
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65