NAG Library Function Document
nag_bessel_i_alpha (s18ejc) returns a sequence of values for the modified Bessel functions or for real , non-negative and .
||nag_bessel_i_alpha (double x,
nag_bessel_i_alpha (s18ejc) evaluates a sequence of values for the modified 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
x – doubleInput
On entry: the argument of the function.
if , .
a – doubleInput
On entry: the order of the first member in the required sequence of function values.
nl – IntegerInput
On entry: the value of .
b – ComplexOutput
, the required sequence of function values: b
fail – 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 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, 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.
The example program evaluates and at , and prints the results.
9.1 Program Text
Program Text (s18ejce.c)
9.2 Program Data
Program Data (s18ejce.d)
9.3 Program Results
Program Results (s18ejce.r)