\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}
{\left(\left(\sqrt[3]{n} \cdot \sqrt[3]{n}\right) \cdot \left(\sqrt[3]{n} \cdot \left(2 \cdot \pi\right)\right)\right)}^{\left(k \cdot -0.5\right)} \cdot \frac{\sqrt{n \cdot \left(2 \cdot \pi\right)}}{\sqrt{k}}
(FPCore (k n) :precision binary64 (* (/ 1.0 (sqrt k)) (pow (* (* 2.0 PI) n) (/ (- 1.0 k) 2.0))))
(FPCore (k n) :precision binary64 (* (pow (* (* (cbrt n) (cbrt n)) (* (cbrt n) (* 2.0 PI))) (* k -0.5)) (/ (sqrt (* n (* 2.0 PI))) (sqrt k))))
double code(double k, double n) {
return (1.0 / sqrt(k)) * pow(((2.0 * ((double) M_PI)) * n), ((1.0 - k) / 2.0));
}
double code(double k, double n) {
return pow(((cbrt(n) * cbrt(n)) * (cbrt(n) * (2.0 * ((double) M_PI)))), (k * -0.5)) * (sqrt(n * (2.0 * ((double) M_PI))) / sqrt(k));
}



Bits error versus k



Bits error versus n
Results
Initial program 0.5
Simplified0.5
Applied *-un-lft-identity_binary640.5
Applied sqrt-prod_binary640.5
Applied fma-udef_binary640.5
Applied unpow-prod-up_binary640.4
Applied times-frac_binary640.4
Simplified0.4
Simplified0.4
Applied add-cube-cbrt_binary640.4
Applied associate-*l*_binary640.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2021307
(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))))