besselY0

Evaluates the real Bessel function of the second kind of order zero Y0(x).

Synopsis

besselY0 (x)

Required Arguments

float x (Input)
Point at which the Bessel function is to be evaluated.

Return Value

The value of the Bessel function

Y0(x)=1ππ0sin(xsinθ)dθ2π0ezsinhtdt

If no solution can be computed, NaN is returned.

Description

This function is sometimes called the Neumann function, N0(x), or Weber’s function.

Since Y0(x) is complex for negative x and is undefined at x=0, besselY0 is defined only for x>0. Because the Bessel function Y0(x) is oscillatory, its computation becomes inaccurate as x increases.

../../_images/Fig9-10.png

Figure 9.17 — Plot of Y0(x) and Y1(x)

Example

The Bessel function Y0(1.5) is evaluated.

from __future__ import print_function
from numpy import *
from pyimsl.math.besselY0 import besselY0

x = 1.5
ans = besselY0(x)
print("Y0(%f) = %f" % (x, ans))

Output

Y0(1.500000) = 0.382449

Warning Errors

IMSL_LARGE_ABS_ARG_WARN |x| should be less than 1/ε where ɛ is the machine precision to prevent the answer from being less accurate than half precision.

Fatal Errors

IMSL_LARGE_ABS_ARG_FATAL |x| should be less than 1/ε where ɛ is the machine precision for the answer to have any precision.