31 auto ax = std::abs (x);
38 return 1.0 + y * (3.5156229 + y * (3.0899424 + y * (1.2067492
39 + y * (0.2659732 + y * (0.360768e-1 + y * 0.45813e-2)))));
45 * (0.39894228 + y * (0.1328592e-1 + y * (0.225319e-2 + y * (-0.157565e-2 + y * (0.916281e-2
46 + y * (-0.2057706e-1 + y * (0.2635537e-1 + y * (-0.1647633e-1 + y * 0.392377e-2))))))));
56 for (
int i = 0; i <
M; ++i)
65 for (
int i = 0; i <
M; ++i)
80 for (
int i = 0; i <
M; ++i)
89 for (
int i =
M - 1; i >= 0; --i)
90 last = (1.0 +
ke[i + 1]) / (1.0 / last +
ke[i + 1] * last);
103 for (
int i = 0; i <
M; ++i)
112 for (
int i =
M - 1; i >= 0; --i)
113 last = (1.0 +
ke[i + 1]) / (1.0 / last +
ke[i + 1] * last);
126 for (
int i = 0; i <
M; ++i)
134 for (
int i = 1; i <=
M; ++i)
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
Commonly used mathematical constants.
static Complex< double > sne(Complex< double > u, double k) noexcept
Computes the Jacobian elliptic function sn for the elliptic modulus k and the quarter-period units u.
static double besselI0(double x) noexcept
Computes the modified Bessel function of the first kind I0 for a given double value x.
static Complex< double > cde(Complex< double > u, double k) noexcept
Computes the Jacobian elliptic function cd for the elliptic modulus k and the quarter-period units u.
static Complex< double > asne(Complex< double > w, double k) noexcept
Computes the inverse of the Jacobian elliptic function sn for the elliptic modulus k and the quarter-...
static void ellipticIntegralK(double k, double &K, double &Kp) noexcept
Computes the complete elliptic integral of the first kind K for a given double value k,...