Library: | math |
See also: |
Quantlet: | mbessel3 | |
Description: | calculates the modified Bessel function of the third kind with index lambda |
Usage: | res = mbessel3(lamb, x) | |
Input: | ||
lamb | scalar, the index lambda for the modified Bessel function of the third kind | |
x | n x 1 vector of positive numbers, argument of the Bessel function | |
Output: | ||
res.y | n x 1 vector, the values of modified Bessel function of the third kind with index lambda | |
res.flag | n x 1 vector, the indicator for convergence: 0 - converged, 1 - not converged, 2 - approximation formula has been adopted. |
library("math") x = aseq(0.1, 10, 0.1) lambda = 1 mb3 = mbessel3(lambda, x) x ~ mb3.y ~ mb3.flag
x, y and the indicator for convergence are listed. Contents of _tmp [ 1,] 0.1 9.8538 0 [ 2,] 0.2 4.776 0 [ 3,] 0.3 3.056 0 [ 4,] 0.4 2.1844 0 [ 5,] 0.5 1.6564 0 [ 6,] 0.6 1.3028 0 [ 7,] 0.7 1.0503 0 [ 8,] 0.8 0.86178 0 [ 9,] 0.9 0.71653 0 [10,] 1 0.60191 0