bessely0
bessely0(x)
Bessel function of the second kind of order 0, $Y_0(x)$.
Examples
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)
0.5103756726497459
Here are some common examples of its use:
-
Calculate Bessel function for a single value:
julia> bessely0(1.5) -0.7812128213002887
-
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}: -0.7812128213002887 0.5103756726497459 0.44628710262841905 -0.01694074770061143
- Handle large input values:
julia> bessely0(10^6) -0.0001416936637117022
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.