[Previous] [Contents] [Next]

jn(), jnf()

Compute a Bessel function of the first kind

Synopsis:

#include <math.h>

double jn( int n, double x );

float jnf( int n, float x );

Library:

libbessel

Description:

Compute the Bessel function of the first kind for n and x.

Returns:

The result of the Bessel function of n and x.

Examples:

#include <stdlib.h>
#include <stdio.h>
#include <math.h>

int main( void )
{
    double x, y, z;

    x = j0( 2.4 );
    y = y1( 1.58 );
    z = jn( 3, 2.4 );

    printf( "j0(2.4) = %f, y1(1.58) = %f\n", x, y );
    printf( "jn(3,2.4) = %f\n", z );

    return EXIT_SUCCESS;
}

Classification:

jn() is standard Unix; jnf() is ANSI (draft)

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

errno, j0(), j1(), y0(), y1(), yn()


[Previous] [Contents] [Next]