Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/bessely0/docs/types/index.d"

Index

Functions

Functions

Export assignment y0

  • y0(x: number): number
  • Computes the Bessel function of the second kind of order zero.

    Notes

    • 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