hv2
-
constexpr Complex hv2(const double v, const Complex &z) noexcept
Evaluates the Hankel function of the second kind [1] for a complex input and real order.
Parameters
- const double v
A real number.
- const Complex &z
A complex number.
Returns
- type Complex
A complex number.
The Hankel functions of the second kind are defined as:
\[H_{n}^{(2)}(z) = J_n(z) - iY_n(z)\]
Example
int n = 0.5;
Complex z = 1 + 1_j;
std::cout << hv2(n, z) << "\n";
Output:
1.79659 + 0.32206j
References