Bessel function of the second kind of order 0, $Y_0(x)$.


The bessely0(x) function in Julia computes the Bessel function of the second kind of order 0, denoted as $Y_0(x)$.

julia> bessely0(2.0)

Here are some common examples of its use:

  1. Calculate Bessel function for a single value:

    julia> bessely0(1.5)
  2. Evaluate Bessel function for an array of values:

    julia> x = [1.0, 2.0, 3.0, 4.0];
    julia> bessely0.(x)
    4-element Array{Float64,1}:
  3. Handle large input values:
    julia> bessely0(10^6)

Common mistake example:

julia> bessely0(-1)
ERROR: DomainError:

In this example, a DomainError is raised because the Bessel function of the second kind is not defined for negative values of x. Make sure to provide valid inputs within the domain of the function to avoid such errors.

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: