33 auto ax = std::abs (
x);
40 return 1.0 +
y * (3.5156229 +
y * (3.0899424 +
y * (1.2067492
41 +
y * (0.2659732 +
y * (0.360768e-1 +
y * 0.45813e-2)))));
46 return (std::exp (ax) / std::sqrt (ax))
47 * (0.39894228 +
y * (0.1328592e-1 +
y * (0.225319e-2 +
y * (-0.157565e-2 +
y * (0.916281e-2
48 +
y * (-0.2057706e-1 +
y * (0.2635537e-1 +
y * (-0.1647633e-1 +
y * 0.392377e-2))))))));
58 for (
int i = 0;
i <
M; ++
i)
60 lastK = std::pow (lastK / (1 + std::sqrt (1 - std::pow (lastK, 2.0))), 2.0);
65 auto last = std::sqrt (1 -
k *
k);
67 for (
int i = 0;
i <
M; ++
i)
69 last = std::pow (last / (1.0 + std::sqrt (1.0 - std::pow (last, 2.0))), 2.0);
82 for (
int i = 0;
i <
M; ++
i)
84 auto next = std::pow (*kei / (1.0 + std::sqrt (1.0 - std::pow (*kei, 2.0))), 2.0);
91 for (
int i =
M - 1;
i >= 0; --
i)
92 last = (1.0 + ke[
i + 1]) / (1.0 / last + ke[
i + 1] * last);
105 for (
int i = 0;
i <
M; ++
i)
107 auto next = std::pow (*kei / (1 + std::sqrt (1 - std::pow (*kei, 2.0))), 2.0);
114 for (
int i =
M - 1;
i >= 0; --
i)
115 last = (1.0 + ke[
i + 1]) / (1.0 / last + ke[
i + 1] * last);
128 for (
int i = 0;
i <
M; ++
i)
130 auto next = std::pow (*kei / (1.0 + std::sqrt (1.0 - std::pow (*kei, 2.0))), 2.0);
136 for (
int i = 1;
i <=
M; ++
i)
137 last = 2.0 * last / ((1.0 + ke[
i]) * (1.0 + std::sqrt (1.0 - std::pow (ke[
i - 1] * last, 2.0))));
UINT_D64 w
Definition inflate.c:942
register unsigned k
Definition inflate.c:946
int y
Definition inflate.c:1588
struct huft * u[BMAX]
Definition inflate.c:1583
register unsigned i
Definition inflate.c:1575
unsigned x[BMAX+1]
Definition inflate.c:1586
Definition juce_AudioBlock.h:29
std::complex< Type > Complex
Definition juce_dsp.h:194
Definition carla_juce.cpp:31
#define M
Definition nseel-cfunc.c:37
static constexpr FloatType halfPi
Definition juce_MathsFunctions.h:388
static constexpr FloatType pi
Definition juce_MathsFunctions.h:382
static Complex< double > sne(Complex< double > u, double k) noexcept
Definition juce_SpecialFunctions.cpp:97
static double besselI0(double x) noexcept
Definition juce_SpecialFunctions.cpp:31
static Complex< double > cde(Complex< double > u, double k) noexcept
Definition juce_SpecialFunctions.cpp:74
static Complex< double > asne(Complex< double > w, double k) noexcept
Definition juce_SpecialFunctions.cpp:120
static void ellipticIntegralK(double k, double &K, double &Kp) noexcept
Definition juce_SpecialFunctions.cpp:51