
(FPCore (k n) :precision binary64 (* (/ 1.0 (sqrt k)) (pow (* (* 2.0 PI) n) (/ (- 1.0 k) 2.0))))
double code(double k, double n) {
return (1.0 / sqrt(k)) * pow(((2.0 * ((double) M_PI)) * n), ((1.0 - k) / 2.0));
}
public static double code(double k, double n) {
return (1.0 / Math.sqrt(k)) * Math.pow(((2.0 * Math.PI) * n), ((1.0 - k) / 2.0));
}
def code(k, n): return (1.0 / math.sqrt(k)) * math.pow(((2.0 * math.pi) * n), ((1.0 - k) / 2.0))
function code(k, n) return Float64(Float64(1.0 / sqrt(k)) * (Float64(Float64(2.0 * pi) * n) ^ Float64(Float64(1.0 - k) / 2.0))) end
function tmp = code(k, n) tmp = (1.0 / sqrt(k)) * (((2.0 * pi) * n) ^ ((1.0 - k) / 2.0)); end
code[k_, n_] := N[(N[(1.0 / N[Sqrt[k], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(2.0 * Pi), $MachinePrecision] * n), $MachinePrecision], N[(N[(1.0 - k), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (k n) :precision binary64 (* (/ 1.0 (sqrt k)) (pow (* (* 2.0 PI) n) (/ (- 1.0 k) 2.0))))
double code(double k, double n) {
return (1.0 / sqrt(k)) * pow(((2.0 * ((double) M_PI)) * n), ((1.0 - k) / 2.0));
}
public static double code(double k, double n) {
return (1.0 / Math.sqrt(k)) * Math.pow(((2.0 * Math.PI) * n), ((1.0 - k) / 2.0));
}
def code(k, n): return (1.0 / math.sqrt(k)) * math.pow(((2.0 * math.pi) * n), ((1.0 - k) / 2.0))
function code(k, n) return Float64(Float64(1.0 / sqrt(k)) * (Float64(Float64(2.0 * pi) * n) ^ Float64(Float64(1.0 - k) / 2.0))) end
function tmp = code(k, n) tmp = (1.0 / sqrt(k)) * (((2.0 * pi) * n) ^ ((1.0 - k) / 2.0)); end
code[k_, n_] := N[(N[(1.0 / N[Sqrt[k], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(2.0 * Pi), $MachinePrecision] * n), $MachinePrecision], N[(N[(1.0 - k), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}
\end{array}
(FPCore (k n) :precision binary64 (* (sqrt (/ (* 2.0 n) (pow (* 2.0 (* n PI)) k))) (sqrt (/ PI k))))
double code(double k, double n) {
return sqrt(((2.0 * n) / pow((2.0 * (n * ((double) M_PI))), k))) * sqrt((((double) M_PI) / k));
}
public static double code(double k, double n) {
return Math.sqrt(((2.0 * n) / Math.pow((2.0 * (n * Math.PI)), k))) * Math.sqrt((Math.PI / k));
}
def code(k, n): return math.sqrt(((2.0 * n) / math.pow((2.0 * (n * math.pi)), k))) * math.sqrt((math.pi / k))
function code(k, n) return Float64(sqrt(Float64(Float64(2.0 * n) / (Float64(2.0 * Float64(n * pi)) ^ k))) * sqrt(Float64(pi / k))) end
function tmp = code(k, n) tmp = sqrt(((2.0 * n) / ((2.0 * (n * pi)) ^ k))) * sqrt((pi / k)); end
code[k_, n_] := N[(N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] / N[Power[N[(2.0 * N[(n * Pi), $MachinePrecision]), $MachinePrecision], k], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(Pi / k), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\frac{2 \cdot n}{{\left(2 \cdot \left(n \cdot \pi\right)\right)}^{k}}} \cdot \sqrt{\frac{\pi}{k}}
\end{array}
Initial program 99.5%
associate-*l/99.5%
*-un-lft-identity99.5%
unpow-prod-down72.7%
unpow-prod-down99.5%
div-sub99.5%
metadata-eval99.5%
pow-div99.7%
pow1/299.7%
associate-/l/99.7%
*-commutative99.7%
associate-*l*99.7%
div-inv99.7%
metadata-eval99.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
*-un-lft-identity99.7%
*-commutative99.7%
sqrt-unprod99.7%
sqrt-undiv90.7%
Applied egg-rr90.7%
*-rgt-identity90.7%
times-frac90.7%
*-commutative90.7%
associate-*r*90.7%
Simplified90.7%
*-commutative90.7%
sqrt-prod99.7%
associate-*r*99.7%
*-commutative99.7%
*-commutative99.7%
associate-*r*99.7%
*-commutative99.7%
Applied egg-rr99.7%
Final simplification99.7%
(FPCore (k n) :precision binary64 (if (<= k 2.45e-45) (* (sqrt (/ PI k)) (sqrt (* 2.0 n))) (sqrt (/ (pow (* n (* 2.0 PI)) (- 1.0 k)) k))))
double code(double k, double n) {
double tmp;
if (k <= 2.45e-45) {
tmp = sqrt((((double) M_PI) / k)) * sqrt((2.0 * n));
} else {
tmp = sqrt((pow((n * (2.0 * ((double) M_PI))), (1.0 - k)) / k));
}
return tmp;
}
public static double code(double k, double n) {
double tmp;
if (k <= 2.45e-45) {
tmp = Math.sqrt((Math.PI / k)) * Math.sqrt((2.0 * n));
} else {
tmp = Math.sqrt((Math.pow((n * (2.0 * Math.PI)), (1.0 - k)) / k));
}
return tmp;
}
def code(k, n): tmp = 0 if k <= 2.45e-45: tmp = math.sqrt((math.pi / k)) * math.sqrt((2.0 * n)) else: tmp = math.sqrt((math.pow((n * (2.0 * math.pi)), (1.0 - k)) / k)) return tmp
function code(k, n) tmp = 0.0 if (k <= 2.45e-45) tmp = Float64(sqrt(Float64(pi / k)) * sqrt(Float64(2.0 * n))); else tmp = sqrt(Float64((Float64(n * Float64(2.0 * pi)) ^ Float64(1.0 - k)) / k)); end return tmp end
function tmp_2 = code(k, n) tmp = 0.0; if (k <= 2.45e-45) tmp = sqrt((pi / k)) * sqrt((2.0 * n)); else tmp = sqrt((((n * (2.0 * pi)) ^ (1.0 - k)) / k)); end tmp_2 = tmp; end
code[k_, n_] := If[LessEqual[k, 2.45e-45], N[(N[Sqrt[N[(Pi / k), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sqrt[N[(N[Power[N[(n * N[(2.0 * Pi), $MachinePrecision]), $MachinePrecision], N[(1.0 - k), $MachinePrecision]], $MachinePrecision] / k), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 2.45 \cdot 10^{-45}:\\
\;\;\;\;\sqrt{\frac{\pi}{k}} \cdot \sqrt{2 \cdot n}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\left(1 - k\right)}}{k}}\\
\end{array}
\end{array}
if k < 2.4499999999999999e-45Initial program 99.3%
associate-*l/99.4%
*-un-lft-identity99.4%
unpow-prod-down98.9%
unpow-prod-down99.4%
div-sub99.4%
metadata-eval99.4%
pow-div99.4%
pow1/299.4%
associate-/l/99.4%
*-commutative99.4%
associate-*l*99.4%
div-inv99.4%
metadata-eval99.4%
Applied egg-rr99.4%
unpow1/299.4%
Simplified99.4%
sqrt-unprod99.4%
sqrt-undiv77.5%
Applied egg-rr77.5%
Taylor expanded in k around 0 77.5%
associate-/l*77.5%
Simplified77.5%
associate-*r*77.5%
sqrt-prod99.5%
*-commutative99.5%
Applied egg-rr99.5%
if 2.4499999999999999e-45 < k Initial program 99.7%
add-sqr-sqrt99.6%
sqrt-unprod99.7%
frac-times99.6%
metadata-eval99.6%
add-sqr-sqrt99.6%
Applied egg-rr99.6%
Applied egg-rr99.7%
unpow1/299.7%
associate-*l/99.7%
*-lft-identity99.7%
*-commutative99.7%
associate-*r*99.7%
*-commutative99.7%
associate-*r*99.7%
Simplified99.7%
Final simplification99.6%
(FPCore (k n) :precision binary64 (if (<= k 1.2e+238) (* (sqrt (/ PI k)) (sqrt (* 2.0 n))) (cbrt (pow (* 2.0 (/ n (/ k PI))) 1.5))))
double code(double k, double n) {
double tmp;
if (k <= 1.2e+238) {
tmp = sqrt((((double) M_PI) / k)) * sqrt((2.0 * n));
} else {
tmp = cbrt(pow((2.0 * (n / (k / ((double) M_PI)))), 1.5));
}
return tmp;
}
public static double code(double k, double n) {
double tmp;
if (k <= 1.2e+238) {
tmp = Math.sqrt((Math.PI / k)) * Math.sqrt((2.0 * n));
} else {
tmp = Math.cbrt(Math.pow((2.0 * (n / (k / Math.PI))), 1.5));
}
return tmp;
}
function code(k, n) tmp = 0.0 if (k <= 1.2e+238) tmp = Float64(sqrt(Float64(pi / k)) * sqrt(Float64(2.0 * n))); else tmp = cbrt((Float64(2.0 * Float64(n / Float64(k / pi))) ^ 1.5)); end return tmp end
code[k_, n_] := If[LessEqual[k, 1.2e+238], N[(N[Sqrt[N[(Pi / k), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Power[N[Power[N[(2.0 * N[(n / N[(k / Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.5], $MachinePrecision], 1/3], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 1.2 \cdot 10^{+238}:\\
\;\;\;\;\sqrt{\frac{\pi}{k}} \cdot \sqrt{2 \cdot n}\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(2 \cdot \frac{n}{\frac{k}{\pi}}\right)}^{1.5}}\\
\end{array}
\end{array}
if k < 1.2e238Initial program 99.5%
associate-*l/99.5%
*-un-lft-identity99.5%
unpow-prod-down73.4%
unpow-prod-down99.5%
div-sub99.5%
metadata-eval99.5%
pow-div99.7%
pow1/299.7%
associate-/l/99.7%
*-commutative99.7%
associate-*l*99.7%
div-inv99.7%
metadata-eval99.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
sqrt-unprod99.7%
sqrt-undiv89.7%
Applied egg-rr89.7%
Taylor expanded in k around 0 43.3%
associate-/l*43.3%
Simplified43.3%
associate-*r*43.3%
sqrt-prod53.3%
*-commutative53.3%
Applied egg-rr53.3%
if 1.2e238 < k Initial program 100.0%
associate-*l/100.0%
*-un-lft-identity100.0%
unpow-prod-down66.7%
unpow-prod-down100.0%
div-sub100.0%
metadata-eval100.0%
pow-div100.0%
pow1/2100.0%
associate-/l/100.0%
*-commutative100.0%
associate-*l*100.0%
div-inv100.0%
metadata-eval100.0%
Applied egg-rr100.0%
unpow1/2100.0%
Simplified100.0%
sqrt-unprod100.0%
sqrt-undiv100.0%
Applied egg-rr100.0%
Taylor expanded in k around 0 3.1%
associate-/l*3.1%
Simplified3.1%
add-cbrt-cube27.0%
pow1/327.0%
Applied egg-rr27.0%
unpow1/327.0%
associate-*r*27.0%
*-commutative27.0%
associate-*l*27.0%
associate-/l*27.0%
*-commutative27.0%
associate-*r/27.0%
*-commutative27.0%
associate-/r/27.0%
Simplified27.0%
Final simplification50.9%
(FPCore (k n) :precision binary64 (/ (pow (* n (* 2.0 PI)) (- 0.5 (/ k 2.0))) (sqrt k)))
double code(double k, double n) {
return pow((n * (2.0 * ((double) M_PI))), (0.5 - (k / 2.0))) / sqrt(k);
}
public static double code(double k, double n) {
return Math.pow((n * (2.0 * Math.PI)), (0.5 - (k / 2.0))) / Math.sqrt(k);
}
def code(k, n): return math.pow((n * (2.0 * math.pi)), (0.5 - (k / 2.0))) / math.sqrt(k)
function code(k, n) return Float64((Float64(n * Float64(2.0 * pi)) ^ Float64(0.5 - Float64(k / 2.0))) / sqrt(k)) end
function tmp = code(k, n) tmp = ((n * (2.0 * pi)) ^ (0.5 - (k / 2.0))) / sqrt(k); end
code[k_, n_] := N[(N[Power[N[(n * N[(2.0 * Pi), $MachinePrecision]), $MachinePrecision], N[(0.5 - N[(k / 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Sqrt[k], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}}
\end{array}
Initial program 99.5%
associate-*l/99.5%
*-lft-identity99.5%
div-sub99.5%
metadata-eval99.5%
Simplified99.5%
Final simplification99.5%
(FPCore (k n) :precision binary64 (* (sqrt (/ PI k)) (sqrt (* 2.0 n))))
double code(double k, double n) {
return sqrt((((double) M_PI) / k)) * sqrt((2.0 * n));
}
public static double code(double k, double n) {
return Math.sqrt((Math.PI / k)) * Math.sqrt((2.0 * n));
}
def code(k, n): return math.sqrt((math.pi / k)) * math.sqrt((2.0 * n))
function code(k, n) return Float64(sqrt(Float64(pi / k)) * sqrt(Float64(2.0 * n))) end
function tmp = code(k, n) tmp = sqrt((pi / k)) * sqrt((2.0 * n)); end
code[k_, n_] := N[(N[Sqrt[N[(Pi / k), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\frac{\pi}{k}} \cdot \sqrt{2 \cdot n}
\end{array}
Initial program 99.5%
associate-*l/99.5%
*-un-lft-identity99.5%
unpow-prod-down72.7%
unpow-prod-down99.5%
div-sub99.5%
metadata-eval99.5%
pow-div99.7%
pow1/299.7%
associate-/l/99.7%
*-commutative99.7%
associate-*l*99.7%
div-inv99.7%
metadata-eval99.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
sqrt-unprod99.7%
sqrt-undiv90.7%
Applied egg-rr90.7%
Taylor expanded in k around 0 39.5%
associate-/l*39.5%
Simplified39.5%
associate-*r*39.5%
sqrt-prod48.6%
*-commutative48.6%
Applied egg-rr48.6%
Final simplification48.6%
(FPCore (k n) :precision binary64 (/ 1.0 (sqrt (* k (* (/ 0.5 n) (/ 1.0 PI))))))
double code(double k, double n) {
return 1.0 / sqrt((k * ((0.5 / n) * (1.0 / ((double) M_PI)))));
}
public static double code(double k, double n) {
return 1.0 / Math.sqrt((k * ((0.5 / n) * (1.0 / Math.PI))));
}
def code(k, n): return 1.0 / math.sqrt((k * ((0.5 / n) * (1.0 / math.pi))))
function code(k, n) return Float64(1.0 / sqrt(Float64(k * Float64(Float64(0.5 / n) * Float64(1.0 / pi))))) end
function tmp = code(k, n) tmp = 1.0 / sqrt((k * ((0.5 / n) * (1.0 / pi)))); end
code[k_, n_] := N[(1.0 / N[Sqrt[N[(k * N[(N[(0.5 / n), $MachinePrecision] * N[(1.0 / Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\sqrt{k \cdot \left(\frac{0.5}{n} \cdot \frac{1}{\pi}\right)}}
\end{array}
Initial program 99.5%
associate-*l/99.5%
*-un-lft-identity99.5%
unpow-prod-down72.7%
unpow-prod-down99.5%
div-sub99.5%
metadata-eval99.5%
pow-div99.7%
pow1/299.7%
associate-/l/99.7%
*-commutative99.7%
associate-*l*99.7%
div-inv99.7%
metadata-eval99.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
clear-num99.7%
inv-pow99.7%
sqrt-unprod99.7%
sqrt-undiv91.3%
Applied egg-rr91.3%
unpow-191.3%
associate-/l*91.2%
*-commutative91.2%
associate-*r*91.2%
*-commutative91.2%
associate-*r*91.2%
Simplified91.2%
Taylor expanded in k around 0 40.1%
associate-/r*40.1%
div-inv40.1%
Applied egg-rr40.1%
Final simplification40.1%
(FPCore (k n) :precision binary64 (/ 1.0 (sqrt (* k (/ 0.5 (* n PI))))))
double code(double k, double n) {
return 1.0 / sqrt((k * (0.5 / (n * ((double) M_PI)))));
}
public static double code(double k, double n) {
return 1.0 / Math.sqrt((k * (0.5 / (n * Math.PI))));
}
def code(k, n): return 1.0 / math.sqrt((k * (0.5 / (n * math.pi))))
function code(k, n) return Float64(1.0 / sqrt(Float64(k * Float64(0.5 / Float64(n * pi))))) end
function tmp = code(k, n) tmp = 1.0 / sqrt((k * (0.5 / (n * pi)))); end
code[k_, n_] := N[(1.0 / N[Sqrt[N[(k * N[(0.5 / N[(n * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\sqrt{k \cdot \frac{0.5}{n \cdot \pi}}}
\end{array}
Initial program 99.5%
associate-*l/99.5%
*-un-lft-identity99.5%
unpow-prod-down72.7%
unpow-prod-down99.5%
div-sub99.5%
metadata-eval99.5%
pow-div99.7%
pow1/299.7%
associate-/l/99.7%
*-commutative99.7%
associate-*l*99.7%
div-inv99.7%
metadata-eval99.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
clear-num99.7%
inv-pow99.7%
sqrt-unprod99.7%
sqrt-undiv91.3%
Applied egg-rr91.3%
unpow-191.3%
associate-/l*91.2%
*-commutative91.2%
associate-*r*91.2%
*-commutative91.2%
associate-*r*91.2%
Simplified91.2%
Taylor expanded in k around 0 40.1%
Final simplification40.1%
(FPCore (k n) :precision binary64 (/ 1.0 (sqrt (* (/ k n) (/ 0.5 PI)))))
double code(double k, double n) {
return 1.0 / sqrt(((k / n) * (0.5 / ((double) M_PI))));
}
public static double code(double k, double n) {
return 1.0 / Math.sqrt(((k / n) * (0.5 / Math.PI)));
}
def code(k, n): return 1.0 / math.sqrt(((k / n) * (0.5 / math.pi)))
function code(k, n) return Float64(1.0 / sqrt(Float64(Float64(k / n) * Float64(0.5 / pi)))) end
function tmp = code(k, n) tmp = 1.0 / sqrt(((k / n) * (0.5 / pi))); end
code[k_, n_] := N[(1.0 / N[Sqrt[N[(N[(k / n), $MachinePrecision] * N[(0.5 / Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\sqrt{\frac{k}{n} \cdot \frac{0.5}{\pi}}}
\end{array}
Initial program 99.5%
associate-*l/99.5%
*-un-lft-identity99.5%
unpow-prod-down72.7%
unpow-prod-down99.5%
div-sub99.5%
metadata-eval99.5%
pow-div99.7%
pow1/299.7%
associate-/l/99.7%
*-commutative99.7%
associate-*l*99.7%
div-inv99.7%
metadata-eval99.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
clear-num99.7%
inv-pow99.7%
sqrt-unprod99.7%
sqrt-undiv91.3%
Applied egg-rr91.3%
unpow-191.3%
associate-/l*91.2%
*-commutative91.2%
associate-*r*91.2%
*-commutative91.2%
associate-*r*91.2%
Simplified91.2%
Taylor expanded in k around 0 40.1%
*-un-lft-identity40.1%
associate-*r/40.1%
times-frac40.1%
Applied egg-rr40.1%
*-lft-identity40.1%
Simplified40.1%
Final simplification40.1%
(FPCore (k n) :precision binary64 (sqrt (* 2.0 (* n (/ PI k)))))
double code(double k, double n) {
return sqrt((2.0 * (n * (((double) M_PI) / k))));
}
public static double code(double k, double n) {
return Math.sqrt((2.0 * (n * (Math.PI / k))));
}
def code(k, n): return math.sqrt((2.0 * (n * (math.pi / k))))
function code(k, n) return sqrt(Float64(2.0 * Float64(n * Float64(pi / k)))) end
function tmp = code(k, n) tmp = sqrt((2.0 * (n * (pi / k)))); end
code[k_, n_] := N[Sqrt[N[(2.0 * N[(n * N[(Pi / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{2 \cdot \left(n \cdot \frac{\pi}{k}\right)}
\end{array}
Initial program 99.5%
associate-*l/99.5%
*-un-lft-identity99.5%
unpow-prod-down72.7%
unpow-prod-down99.5%
div-sub99.5%
metadata-eval99.5%
pow-div99.7%
pow1/299.7%
associate-/l/99.7%
*-commutative99.7%
associate-*l*99.7%
div-inv99.7%
metadata-eval99.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
sqrt-unprod99.7%
sqrt-undiv90.7%
Applied egg-rr90.7%
Taylor expanded in k around 0 39.5%
associate-/l*39.5%
Simplified39.5%
Final simplification39.5%
herbie shell --seed 2024041
(FPCore (k n)
:name "Migdal et al, Equation (51)"
:precision binary64
(* (/ 1.0 (sqrt k)) (pow (* (* 2.0 PI) n) (/ (- 1.0 k) 2.0))))