besselj1
besselj1(x)
Bessel function of the first kind of order 1, $J_1(x)$.
Examples
In the Julia programming language, the function besselj1(x)
computes the Bessel function of the first kind of order 1, denoted as $J_1(x)$.
julia> besselj1(2.5)
0.5944807685248221
Here are some common examples of how to use the besselj1
function:
-
Compute Bessel function for a scalar value:
julia> besselj1(3.7) 0.21676989329525788
This example calculates the value of $J_1(3.7)$.
-
Evaluate Bessel function for an array of values:
julia> x = [2.0, 4.0, 6.0, 8.0]; julia> besselj1(x) 4-element Array{Float64,1}: 0.5767248077568734 0.21334396569160553 -0.2446574707435046 -0.1892006238269828
In this example, the
besselj1
function is applied element-wise to the arrayx
, resulting in an array of corresponding $J_1$ values. -
Handle large input values:
julia> besselj1(10^6) -0.017017186641884507
The
besselj1
function can handle large input values without issues.
Please note that the output values provided in the examples are rounded for brevity.
No common mistakes specific to the besselj1
function were identified.
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.