Computes the spherical or cylindrical Hankel functions, extended to the complex plane and cayley_dickson algebras.
{
template<eve;scalar_value N, cayley_dickson_like T>
constexpr auto bessel_h(N n, T z)
noexcept;
template<eve;scalar_value N, complex_like T,
size_t S>
constexpr auto bessel_h(N n, T z, std::span<Z, S> chs)
noexcept;
template<eve;scalar_value N, cayley_dickson_like T>
constexpr auto bessel_h[spherical](N n, T z)
noexcept;
template<eve;scalar_value N, complex_like T,
size_t S>
constexpr auto bessel_h[spherical](N n, T z, std::span<Z, S> shs)
noexcept;
template<eve;scalar_value N, cayley_dickson_like T>
constexpr auto bessel_h[kind_2]()
noexcept;
template<eve;scalar_value N, cayley_dickson_like T>
constexpr auto bessel_h[kind_2][spherical]()
noexcept;
}
constexpr auto bessel_h
Computes the spherical or cylindrical Hankel functions, extended to the complex plane and cayley_dick...
Definition bessel_h.hpp:89
Main KYOSU namespace.
Definition cinf.hpp:13
#include <eve/wide.hpp>
#include <iomanip>
#include <iostream>
#include <kyosu/kyosu.hpp>
int main()
{
std::cout << std::setprecision(16) << std::endl;
using w_t = eve::wide<double, eve::fixed<2>>;
auto v = -(2 + 1 / 3.0);
int nb = int(eve::abs(v) + 1);
std::cout << "z " << z << std::endl;
std::vector<decltype(z)> hs(nb);
auto v0 = eve::frac(v);
for (int n = 0; n < nb; ++n)
{
std::cout << "hs[" << n << "] = " << hs[n] << std::endl;
std::cout <<
"bessel_h[cylindrical](v0, z) = " <<
kyosu::bessel_h(v0, z) << std::endl;
}
return 0;
}
constexpr auto complex
Constructs a kyosu::complex_t instance.
Definition to_complex.hpp:69
constexpr auto inc
Increments the argument.
Definition inc.hpp:56