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

◆ cyl_bessel_k

kyosu::cyl_bessel_k = {}
inlineconstexpr

Computes the Modified Bessel functions of the second kind.

#include <kyosu/functions.hpp>

Callable Signatures

namespace kyosu
{
template<eve::floating_ordered_value, kyosu::concepts::cayley_dickson T>
constexpr auto cyl_bessel_k(N nu, T z) noexcept;
template<eve::floating_ordered_value, eve::floating_ordered_value T>
constexpr T cyl_bessel_k(N n, T z) noexcept;
}
constexpr tags::callable_cyl_bessel_k cyl_bessel_k
Computes the Modified Bessel functions of the second kind.
Definition: cyl_bessel_k.hpp:95
Main KYOSU namespace.
Definition: types.hpp:14

Parameters

  • nu: order of the function.
  • z: Value to process.

Return value

  • returns \(K_\nu(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));
auto v = 3.3;
std::cout << "z " << z << std::endl;
std::vector<decltype(z)> ks(4);
for(int n=0; n <= 3; ++n)
{
std::cout << "ks[" << n << "] = " << ks[n] << std::endl;
}
return 0;
}
constexpr tags::callable_complex complex
Constructs a kyosu::complex.
Definition: to_complex.hpp:70