Miscellaneous math functions.
More...
- Author
- A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it) B. Vaidya
- Date
- June 27, 2019
◆ BesselI0()
double BesselI0 |
( |
double |
x | ) |
|
Returns the modified Bessel function I0(x) for any real x. (Adapted from Numerical Recipes)
◆ BesselI1()
double BesselI1 |
( |
double |
x | ) |
|
Returns the modified Bessel function I1(x) for any real x. (Adapted from Numerical Recipes)
◆ BesselJ0()
double BesselJ0 |
( |
double |
x | ) |
|
Returns the Bessel function J0(x) for any real x. (Adapted from Numerical Recipes)
◆ BesselJ1()
double BesselJ1 |
( |
double |
x | ) |
|
Returns the Bessel function J1(x) for any real x. (Adapted from Numerical Recipes)
◆ BesselK0()
double BesselK0 |
( |
double |
x | ) |
|
Returns the modified Bessel function K0(x) for any real x. (Adapted from Numerical Recipes)
◆ BesselK1()
double BesselK1 |
( |
double |
x | ) |
|
Returns the modified Bessel function K1(x) for any real x. (Adapted from Numerical Recipes)
◆ BesselKn()
double BesselKn |
( |
int |
n, |
|
|
double |
x |
|
) |
| |
Returns the modified Bessel function Kn(x) for positive x and n >= 2. (Adapted from Numerical Recipes)
◆ QuickSort()
void QuickSort |
( |
int * |
x, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
◆ SortArray()
void SortArray |
( |
double * |
z, |
|
|
int |
n |
|
) |
| |
Sort array elements using straight insertion.
- Parameters
-
[in,out] | z | pointer to 1D array in double precision |
[in] | n | the number of elements (starting at 0) |
Reference: -"Numerical Recipes in C", sect. 8.1
◆ VectorCartesianComponents()
void VectorCartesianComponents |
( |
double * |
v, |
|
|
double |
x1, |
|
|
double |
x2, |
|
|
double |
x3 |
|
) |
| |
Transform the vector
from the chosen coordinate system (= GEOMETRY) to Cartesian components.
- Parameters
-
[in,out] | *v | the original vector. On output v is replaced by the three Cartesian components. |
[in] | x1,x2,x3 | the grid coordinates |