Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment j1

  • j1(x: number): number
  • Computes the Bessel function of the first kind of order one.

    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 = j1( 0.0 );
    // returns 0.0
    
    v = j1( 1.0 );
    // returns ~0.440
    
    v = j1( Infinity );
    // returns 0.0
    
    v = j1( -Infinity );
    // returns 0.0
    
    v = j1( NaN );
    // returns NaN