NAG Library Function Document
nag_bessel_j_alpha (s18ekc) returns a sequence of values for the Bessel functions or for real , non-negative and .
||nag_bessel_j_alpha (double x,
nag_bessel_j_alpha (s18ekc) evaluates a sequence of values for the Bessel function of the first kind
is real and nonzero and
is the order with
-member sequence is generated for orders
. Note that
is replaced by
. For positive orders the function may also be called with
. For negative orders the formula
is used to generate the required sequence.
Abramowitz M and Stegun I A (1972) Handbook of Mathematical Functions (3rd Edition) Dover Publications
On entry: the argument of the function.
if , .
On entry: the order of the first member in the required sequence of function values.
On entry: the value of .
, the required sequence of function values: b
– NagError *Input/Output
The NAG error argument (see Section 3.6
in the Essential Introduction).
6 Error Indicators and Warnings
On entry, .
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG
The evaluation has been abandoned due to the likelihood of overflow.
On entry, .
On entry, , .
Constraint: when .
The evaluation has been abandoned due to failure to satisfy the termination condition.
The evaluation has been abandoned due to total loss of precision.
The evaluation has been completed but some precision has been lost.
All constants in the underlying functions are are specified to approximately 18 digits of precision. If denotes the number of digits of precision in the floating-point arithmetic being used, then clearly the maximum number of correct digits in the results obtained is limited by . Because of errors in argument reduction when computing elementary functions inside the underlying functions are, the actual number of correct digits is limited, in general, by , where represents the number of digits lost due to the argument reduction. Thus the larger the values of and , the less the precision in the result.
8 Parallelism and Performance
The example program evaluates and at , and prints the results.
10.1 Program Text
Program Text (s18ekce.c)
10.2 Program Data
Program Data (s18ekce.d)
10.3 Program Results
Program Results (s18ekce.r)