SDDSlib
|
Computes the Modified Bessel Function of the Second Kind K_{1/3}(z). More...
#include "mdb.h"
#include "constants.h"
#include "math.h"
Go to the source code of this file.
Macros | |
#define | A_LIM 10.1 |
#define | EPS1 1.0e-12 |
#define | EPS2 1.0e-8 |
#define | GAMMA_OF_NY 2.678938534707747898 |
#define | NY 1.0 / 3.0 |
Functions | |
double | k13 (double z) |
Compute the Modified Bessel Function of the Second Kind K_{1/3}(z). | |
Computes the Modified Bessel Function of the Second Kind K_{1/3}(z).
This file provides the implementation of k13(), which computes the Modified Bessel Function of the Second Kind K_{1/3}(z) for a given input. It uses a series expansion for small arguments and an asymptotic expansion for larger arguments, referencing Abramowitz & Stegun and derived from Roger Dejus's k13.f code.
Definition in file k13.c.
double k13 | ( | double | z | ) |
Compute the Modified Bessel Function of the Second Kind K_{1/3}(z).
This function calculates K_{1/3}(z) for inputs in the approximate range 0.0 < z < 60.0. For smaller z (z < A_LIM), it uses a series expansion, while for larger z, it employs an asymptotic expansion. The method and constants are adapted from the original Fortran implementation by Roger Dejus and mathematical formulas from Abramowitz & Stegun.
z | The input value for which K_{1/3}(z) is evaluated. |
Definition at line 43 of file k13.c.