Computes the modified Bessel functions of the second kind, \( K_{n}(x)=\lim_{\alpha\to n}{\frac {\pi }{2}}{\frac {I_{-\alpha }(x)-I_{\alpha }(x)}{\sin \alpha \pi }}\). extended to the complex plane and cayley_dickson algebras.
#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>>;
for(int n=2; n <= 10; ++n)
{
std::cout << "n " << n << ", z " << z << std::endl;
std::cout << "cyl_bessel_kn(n, z) " << kn << std::endl;
}
return 0;
}
constexpr tags::callable_complex complex
Constructs a kyosu::complex.
Definition: to_complex.hpp:70