bessel_k {RcppBessel} | R Documentation |
The BesselK Function
Description
Computes the modified Bessel function of the second kind for real or complex inputs.
Usage
bessel_k(z, nu, expon_scaled = FALSE, verbose = 0)
Arguments
z |
A numeric or complex vector representing the input values at which to evaluate the Bessel function. |
nu |
A double representing the order of the Bessel function. |
expon_scaled |
A logical value indicating whether to use the exponentially scaled form of the Bessel function. Defaults to |
verbose |
An integer specifying the verbosity level for error messages. Defaults to |
Value
A numeric or complex vector (depending on the input) containing the values of the bessel_k
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.