Compute a Bessel function of the first kind
#include <math.h> double j0( double x ); float j0f( float x );
Compute the Bessel function of the first kind for x.
The result of the Bessel function of x.
#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; }
j0() is POSIX 1003.1 XSI; j0f() is Unix
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |