kyosu v0.1.0
Complex Without Complexes
 
Loading...
Searching...
No Matches

◆ cyl_bessel_h2n

kyosu::cyl_bessel_h2n = {}
inlineconstexpr

Computes the Bessel/Hankel functions of the third kind , \( H_n^{(2)} = J_n(z)-iY_n(z)\).

#include <kyosu/functions.hpp>

Callable Signatures

namespace kyosu
{
template<kyosu::concepts::cayley_dickson T> constexpr auto cyl_bessel_h2n(int n, T z) noexcept;
template<eve::floating_ordered_value T> constexpr auto cyl_bessel_h2n(int n, T z) noexcept;
}
constexpr tags::callable_cyl_bessel_h2n cyl_bessel_h2n
Computes the Bessel/Hankel functions of the third kind , .
Definition: cyl_bessel_h2n.hpp:77
Main KYOSU namespace.
Definition: types.hpp:14

Parameters

  • z: Value to process.

Return value

  • return \(H_n^{(2)}(z)\).

Example

#include <kyosu/kyosu.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
std::cout.precision(16);
using w_t = eve::wide<double, eve::fixed<2>>;
auto z = kyosu::complex(w_t(20.0, 1.5), w_t(0.0, 1.5));
for(int n=2; n <= 2; ++n)
{
auto h1n = kyosu::cyl_bessel_h2n(n, z);
std::cout << "n " << n << " z " << z << std::endl;
std::cout << "yl_bessel_h2n(n, z) " << h1n << std::endl;
}
return 0;
}
constexpr tags::callable_complex complex
Constructs a kyosu::complex.
Definition: to_complex.hpp:70