Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/j/jn.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/j/jn.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/j/jn.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/j/jn.html on line 8
Compute a Bessel function of the first kind
#include <math.h>
double jn( int n, double x );
float jnf( int n, float x );
- n, x
- The numbers that you want to compute the Bessel function for.
libbessel
Use the -l bessel option to
qcc
to link against this library.
Compute the Bessel function of the first kind for n and
x.
The result of the Bessel function of n and x.
|
If an error occurs, these functions return 0, but this is also a valid
mathematical result.
If you want to check for errors, set
errno
to 0, call the function, and then check errno again.
These functions don't change errno if no errors occurred. |
#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;
}
jn() is
POSIX 1003.1 XSI;
jnf() is
Unix
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
errno,
j0(),
j1(),
y0(),
y1(),
yn()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/j/jn.html on line 157
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/j/jn.html on line 157