Accuracy for subnormal x is very poor. Full accuracy is achieved at 1.0e-308 but trends progressively to zero at 5e-324. This suggests that underflow (or overflow, perhaps due to a reciprocal) is effectively cutting off digits of precision until the computation loses all accuracy at 5e-324.
Parameters
x: number
input value
Returns
number
evaluated Bessel function
Example
var v = y0( 0.0 );
// returns -Infinity
v = y0( 1.0 );
// returns ~0.088
v = y0( -1.0 );
// returns NaN
v = y0( Infinity );
// returns 0.0
v = y0( -Infinity );
// returns NaN
v = y0( NaN );
// returns NaN
Computes the Bessel function of the second kind of order zero.
Notes
x
is very poor. Full accuracy is achieved at1.0e-308
but trends progressively to zero at5e-324
. This suggests that underflow (or overflow, perhaps due to a reciprocal) is effectively cutting off digits of precision until the computation loses all accuracy at5e-324
.