besselkx
besselkx(nu, x)
Scaled modified Bessel function of the second kind of order nu
, $K_\nu(x) e^x$.
Examples
In the Julia programming language, the function besselkx(nu, x)
computes the scaled modified Bessel function of the second kind, denoted as K_ν(x) * exp(x)
, where ν
is the order and x
is the input value.
julia> besselkx(0.5, 2.0)
0.4229808287748654
Here are some common examples of how to use the besselkx
function:
-
Compute the Bessel function for specific values:
julia> besselkx(1.5, 3.0) 0.03249347923435428
This example calculates the scaled modified Bessel function of the second kind with order
1.5
and input value3.0
. -
Evaluate the Bessel function for an array of values:
julia> x = [1.0, 2.0, 3.0]; julia> besselkx(0.5, x) 3-element Array{Float64,1}: 0.6604938271604939 0.4229808287748654 0.2714953395340764
In this example, the
besselkx
function is applied element-wise to the array[1.0, 2.0, 3.0]
with a fixed order of0.5
. -
Handle larger order values:
julia> besselkx(2.5, 1.5) 0.01630902456323518
This example demonstrates how to compute the scaled modified Bessel function of the second kind with a larger order value such as
2.5
and an input value of1.5
.
Please note that the besselkx
function may return different values depending on the specific inputs provided.
If you encounter any unexpected behavior or errors, double-check that the inputs are appropriate for the function.
See Also
besselh, besseli, besselix, besselj, besselj0, besselj1, besseljx, besselk, besselkx, bessely, bessely0, bessely1, besselyx, hankelh1, hankelh1x, hankelh2, hankelh2x,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.