bessel_h {RcppBessel}R Documentation

The BesselH Function

Description

Computes the Hankel function (Bessel function of the third kind) for real or complex inputs.

Usage

bessel_h(m, z, nu, expon_scaled = FALSE, verbose = 0)

Arguments

m

An integer representing the type of Hankel function. It must be either 1 (for the first kind) or 2 (for the second kind).

z

A numeric or complex vector representing the input values at which to evaluate the Hankel function.

nu

A double representing the order of the Hankel function.

expon_scaled

A logical value indicating whether to use the exponentially scaled form of the Hankel function. Defaults to FALSE.

verbose

An integer specifying the verbosity level for error messages. Defaults to 0.

Value

A complex vector containing the values of the bessel_h function evaluated at the points in z.

References

Maechler M (2024). Bessel: Computations and Approximations for Bessel Functions. R package version 0.6-1, https://CRAN.R-project.org/package=Bessel.
Amos DE (1995). “A remark on Algorithm 644: "A portable package for Bessel functions of a complex argument and nonnegative order".” ACM Transactions on Mathematical Software (TOMS), 21(4), 388–393.


[Package RcppBessel version 1.0.0 Index]