SDDSlib
|
Functions for evaluating complete elliptic integrals of the first and second kind (K and E), as well as their total derivatives with respect to the modulus k. More...
#include "mdb.h"
Go to the source code of this file.
Functions | |
void | setCeiAccuracy (double newAccuracy) |
double | K_cei (double k) |
Compute the complete elliptic integral of the first kind, K(k). | |
double | E_cei (double k) |
Compute the complete elliptic integral of the second kind, E(k). | |
double * | KE_cei (double k, double *buffer) |
double | dK_cei (double k) |
Compute the total derivative dK/dk of the complete elliptic integral of the first kind. | |
double | dE_cei (double k) |
Compute the total derivative dE/dk of the complete elliptic integral of the second kind. | |
Variables | |
static double | ceiAccuracy = 1e-14 |
Functions for evaluating complete elliptic integrals of the first and second kind (K and E), as well as their total derivatives with respect to the modulus k.
Definition in file elliptic.c.
double dE_cei | ( | double | k | ) |
Compute the total derivative dE/dk of the complete elliptic integral of the second kind.
Uses K(k) and E(k) to determine the derivative with respect to k.
[in] | k | The modulus of the elliptic integral. |
Definition at line 143 of file elliptic.c.
double dK_cei | ( | double | k | ) |
Compute the total derivative dK/dk of the complete elliptic integral of the first kind.
Uses K(k) and E(k) to determine the derivative with respect to k.
[in] | k | The modulus of the elliptic integral. |
Definition at line 129 of file elliptic.c.
double E_cei | ( | double | k | ) |
Compute the complete elliptic integral of the second kind, E(k).
E(k) = ∫_0^(π/2) √(1 - k² sin² θ) dθ
[in] | k | The modulus of the elliptic integral. |
Definition at line 59 of file elliptic.c.
double K_cei | ( | double | k | ) |
Compute the complete elliptic integral of the first kind, K(k).
K(k) = ∫_0^(π/2) dθ / √(1 - k² sin² θ)
[in] | k | The modulus of the elliptic integral. |
Definition at line 33 of file elliptic.c.
double * KE_cei | ( | double | k, |
double * | buffer ) |
Definition at line 86 of file elliptic.c.
void setCeiAccuracy | ( | double | newAccuracy | ) |
Definition at line 21 of file elliptic.c.
|
static |
Definition at line 19 of file elliptic.c.