Bessel function of the first kind of order 1, $J_1(x)$.


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)

Here are some common examples of how to use the besselj1 function:

  1. Compute Bessel function for a scalar value:

    julia> besselj1(3.7)

    This example calculates the value of $J_1(3.7)$.

  2. 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}:

    In this example, the besselj1 function is applied element-wise to the array x, resulting in an array of corresponding $J_1$ values.

  3. Handle large input values:

    julia> besselj1(10^6)

    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.

*Required Field

Checking you are not a robot: