Migdal et al, Equation (51)

Percentage Accurate: 99.4% → 99.4%
Time: 14.2s
Alternatives: 5
Speedup: 1.0×

Specification

?
\[\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
 (* (/ 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:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 5 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 99.4% accurate, 1.0× speedup?

\[\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
 (* (/ 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}

Alternative 1: 99.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}} \end{array} \]
(FPCore (k n)
 :precision binary64
 (/ (pow (* 2.0 (* PI n)) (- 0.5 (/ k 2.0))) (sqrt k)))
double code(double k, double n) {
	return pow((2.0 * (((double) M_PI) * n)), (0.5 - (k / 2.0))) / sqrt(k);
}
public static double code(double k, double n) {
	return Math.pow((2.0 * (Math.PI * n)), (0.5 - (k / 2.0))) / Math.sqrt(k);
}
def code(k, n):
	return math.pow((2.0 * (math.pi * n)), (0.5 - (k / 2.0))) / math.sqrt(k)
function code(k, n)
	return Float64((Float64(2.0 * Float64(pi * n)) ^ Float64(0.5 - Float64(k / 2.0))) / sqrt(k))
end
function tmp = code(k, n)
	tmp = ((2.0 * (pi * n)) ^ (0.5 - (k / 2.0))) / sqrt(k);
end
code[k_, n_] := N[(N[Power[N[(2.0 * N[(Pi * n), $MachinePrecision]), $MachinePrecision], N[(0.5 - N[(k / 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Sqrt[k], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}}
\end{array}
Derivation
  1. Initial program 99.2%

    \[\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)} \]
  2. Step-by-step derivation
    1. associate-*l/99.2%

      \[\leadsto \color{blue}{\frac{1 \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}}} \]
    2. *-lft-identity99.2%

      \[\leadsto \frac{\color{blue}{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}}{\sqrt{k}} \]
    3. associate-*l*99.2%

      \[\leadsto \frac{{\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}} \]
    4. div-sub99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\frac{1}{2} - \frac{k}{2}\right)}}}{\sqrt{k}} \]
    5. metadata-eval99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\color{blue}{0.5} - \frac{k}{2}\right)}}{\sqrt{k}} \]
  3. Simplified99.2%

    \[\leadsto \color{blue}{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}}} \]
  4. Add Preprocessing
  5. Add Preprocessing

Alternative 2: 88.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{1}{\sqrt{\frac{k}{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(1 - k\right)}}}} \end{array} \]
(FPCore (k n)
 :precision binary64
 (/ 1.0 (sqrt (/ k (pow (* 2.0 (* PI n)) (- 1.0 k))))))
double code(double k, double n) {
	return 1.0 / sqrt((k / pow((2.0 * (((double) M_PI) * n)), (1.0 - k))));
}
public static double code(double k, double n) {
	return 1.0 / Math.sqrt((k / Math.pow((2.0 * (Math.PI * n)), (1.0 - k))));
}
def code(k, n):
	return 1.0 / math.sqrt((k / math.pow((2.0 * (math.pi * n)), (1.0 - k))))
function code(k, n)
	return Float64(1.0 / sqrt(Float64(k / (Float64(2.0 * Float64(pi * n)) ^ Float64(1.0 - k)))))
end
function tmp = code(k, n)
	tmp = 1.0 / sqrt((k / ((2.0 * (pi * n)) ^ (1.0 - k))));
end
code[k_, n_] := N[(1.0 / N[Sqrt[N[(k / N[Power[N[(2.0 * N[(Pi * n), $MachinePrecision]), $MachinePrecision], N[(1.0 - k), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{1}{\sqrt{\frac{k}{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(1 - k\right)}}}}
\end{array}
Derivation
  1. Initial program 99.2%

    \[\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)} \]
  2. Step-by-step derivation
    1. associate-*l/99.2%

      \[\leadsto \color{blue}{\frac{1 \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}}} \]
    2. *-lft-identity99.2%

      \[\leadsto \frac{\color{blue}{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}}{\sqrt{k}} \]
    3. associate-*l*99.2%

      \[\leadsto \frac{{\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}} \]
    4. div-sub99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\frac{1}{2} - \frac{k}{2}\right)}}}{\sqrt{k}} \]
    5. metadata-eval99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\color{blue}{0.5} - \frac{k}{2}\right)}}{\sqrt{k}} \]
  3. Simplified99.2%

    \[\leadsto \color{blue}{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}}} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. pow1/299.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\color{blue}{{k}^{0.5}}} \]
    2. pow-to-exp96.1%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\color{blue}{e^{\log k \cdot 0.5}}} \]
  6. Applied egg-rr96.1%

    \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\color{blue}{e^{\log k \cdot 0.5}}} \]
  7. Step-by-step derivation
    1. add-sqr-sqrt96.1%

      \[\leadsto \color{blue}{\sqrt{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{e^{\log k \cdot 0.5}}} \cdot \sqrt{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{e^{\log k \cdot 0.5}}}} \]
    2. sqrt-unprod88.2%

      \[\leadsto \color{blue}{\sqrt{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{e^{\log k \cdot 0.5}} \cdot \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{e^{\log k \cdot 0.5}}}} \]
    3. frac-times88.2%

      \[\leadsto \sqrt{\color{blue}{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{e^{\log k \cdot 0.5} \cdot e^{\log k \cdot 0.5}}}} \]
  8. Applied egg-rr90.6%

    \[\leadsto \color{blue}{\sqrt{\frac{{\left(\left(2 \cdot n\right) \cdot \pi\right)}^{\left(2 \cdot \left(0.5 + k \cdot -0.5\right)\right)}}{k}}} \]
  9. Step-by-step derivation
    1. associate-*r*90.6%

      \[\leadsto \sqrt{\frac{{\color{blue}{\left(2 \cdot \left(n \cdot \pi\right)\right)}}^{\left(2 \cdot \left(0.5 + k \cdot -0.5\right)\right)}}{k}} \]
    2. *-commutative90.6%

      \[\leadsto \sqrt{\frac{{\color{blue}{\left(\left(n \cdot \pi\right) \cdot 2\right)}}^{\left(2 \cdot \left(0.5 + k \cdot -0.5\right)\right)}}{k}} \]
    3. associate-*l*90.6%

      \[\leadsto \sqrt{\frac{{\color{blue}{\left(n \cdot \left(\pi \cdot 2\right)\right)}}^{\left(2 \cdot \left(0.5 + k \cdot -0.5\right)\right)}}{k}} \]
    4. distribute-rgt-in90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\color{blue}{\left(0.5 \cdot 2 + \left(k \cdot -0.5\right) \cdot 2\right)}}}{k}} \]
    5. metadata-eval90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(\color{blue}{1} + \left(k \cdot -0.5\right) \cdot 2\right)}}{k}} \]
    6. associate-*l*90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 + \color{blue}{k \cdot \left(-0.5 \cdot 2\right)}\right)}}{k}} \]
    7. metadata-eval90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 + k \cdot \color{blue}{-1}\right)}}{k}} \]
    8. *-commutative90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 + \color{blue}{-1 \cdot k}\right)}}{k}} \]
    9. neg-mul-190.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 + \color{blue}{\left(-k\right)}\right)}}{k}} \]
    10. unsub-neg90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\color{blue}{\left(1 - k\right)}}}{k}} \]
  10. Simplified90.6%

    \[\leadsto \color{blue}{\sqrt{\frac{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 - k\right)}}{k}}} \]
  11. Step-by-step derivation
    1. clear-num90.6%

      \[\leadsto \sqrt{\color{blue}{\frac{1}{\frac{k}{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 - k\right)}}}}} \]
    2. sqrt-div90.8%

      \[\leadsto \color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{k}{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 - k\right)}}}}} \]
    3. metadata-eval90.8%

      \[\leadsto \frac{\color{blue}{1}}{\sqrt{\frac{k}{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 - k\right)}}}} \]
  12. Applied egg-rr90.8%

    \[\leadsto \color{blue}{\frac{1}{\sqrt{\frac{k}{{\left(n \cdot \left(\pi \cdot 2\right)\right)}^{\left(1 - k\right)}}}}} \]
  13. Step-by-step derivation
    1. associate-*r*90.8%

      \[\leadsto \frac{1}{\sqrt{\frac{k}{{\color{blue}{\left(\left(n \cdot \pi\right) \cdot 2\right)}}^{\left(1 - k\right)}}}} \]
  14. Simplified90.8%

    \[\leadsto \color{blue}{\frac{1}{\sqrt{\frac{k}{{\left(\left(n \cdot \pi\right) \cdot 2\right)}^{\left(1 - k\right)}}}}} \]
  15. Final simplification90.8%

    \[\leadsto \frac{1}{\sqrt{\frac{k}{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(1 - k\right)}}}} \]
  16. Add Preprocessing

Alternative 3: 87.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sqrt{\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\left(1 - k\right)}}{k}} \end{array} \]
(FPCore (k n)
 :precision binary64
 (sqrt (/ (pow (* n (* 2.0 PI)) (- 1.0 k)) k)))
double code(double k, double n) {
	return sqrt((pow((n * (2.0 * ((double) M_PI))), (1.0 - k)) / k));
}
public static double code(double k, double n) {
	return Math.sqrt((Math.pow((n * (2.0 * Math.PI)), (1.0 - k)) / k));
}
def code(k, n):
	return math.sqrt((math.pow((n * (2.0 * math.pi)), (1.0 - k)) / k))
function code(k, n)
	return sqrt(Float64((Float64(n * Float64(2.0 * pi)) ^ Float64(1.0 - k)) / k))
end
function tmp = code(k, n)
	tmp = sqrt((((n * (2.0 * pi)) ^ (1.0 - k)) / k));
end
code[k_, n_] := 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}

\\
\sqrt{\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\left(1 - k\right)}}{k}}
\end{array}
Derivation
  1. Initial program 99.2%

    \[\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)} \]
  2. Step-by-step derivation
    1. associate-*l/99.2%

      \[\leadsto \color{blue}{\frac{1 \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}}} \]
    2. *-lft-identity99.2%

      \[\leadsto \frac{\color{blue}{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}}{\sqrt{k}} \]
    3. associate-*l*99.2%

      \[\leadsto \frac{{\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}} \]
    4. div-sub99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\frac{1}{2} - \frac{k}{2}\right)}}}{\sqrt{k}} \]
    5. metadata-eval99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\color{blue}{0.5} - \frac{k}{2}\right)}}{\sqrt{k}} \]
  3. Simplified99.2%

    \[\leadsto \color{blue}{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}}} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. metadata-eval99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\color{blue}{\frac{1}{2}} - \frac{k}{2}\right)}}{\sqrt{k}} \]
    2. div-sub99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\frac{1 - k}{2}\right)}}}{\sqrt{k}} \]
    3. associate-*r*99.2%

      \[\leadsto \frac{{\color{blue}{\left(\left(2 \cdot \pi\right) \cdot n\right)}}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}} \]
    4. sqr-pow98.7%

      \[\leadsto \frac{\color{blue}{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}}{\sqrt{k}} \]
    5. associate-*r*98.7%

      \[\leadsto \frac{{\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{\frac{1 - k}{2}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    6. div-inv98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\color{blue}{\left(1 - k\right) \cdot \frac{1}{2}}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    7. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\left(1 - k\right) \cdot \color{blue}{0.5}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    8. associate-/l*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\left(1 - k\right) \cdot \frac{0.5}{2}\right)}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    9. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot \color{blue}{0.25}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    10. associate-*r*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    11. div-inv98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\color{blue}{\left(1 - k\right) \cdot \frac{1}{2}}}{2}\right)}}{\sqrt{k}} \]
    12. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\left(1 - k\right) \cdot \color{blue}{0.5}}{2}\right)}}{\sqrt{k}} \]
    13. associate-/l*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\left(1 - k\right) \cdot \frac{0.5}{2}\right)}}}{\sqrt{k}} \]
    14. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot \color{blue}{0.25}\right)}}{\sqrt{k}} \]
  6. Applied egg-rr98.7%

    \[\leadsto \frac{\color{blue}{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}}}{\sqrt{k}} \]
  7. Step-by-step derivation
    1. add-sqr-sqrt98.6%

      \[\leadsto \color{blue}{\sqrt{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}}{\sqrt{k}}} \cdot \sqrt{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}}{\sqrt{k}}}} \]
    2. sqrt-unprod90.0%

      \[\leadsto \color{blue}{\sqrt{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}}{\sqrt{k}} \cdot \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}}{\sqrt{k}}}} \]
    3. frac-times89.9%

      \[\leadsto \sqrt{\color{blue}{\frac{\left({\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}\right) \cdot \left({\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}\right)}{\sqrt{k} \cdot \sqrt{k}}}} \]
  8. Applied egg-rr90.6%

    \[\leadsto \color{blue}{\sqrt{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(2 \cdot \left(\left(1 - k\right) \cdot 0.5\right)\right)}}{k}}} \]
  9. Step-by-step derivation
    1. associate-*r*90.6%

      \[\leadsto \sqrt{\frac{{\color{blue}{\left(\left(2 \cdot \pi\right) \cdot n\right)}}^{\left(2 \cdot \left(\left(1 - k\right) \cdot 0.5\right)\right)}}{k}} \]
    2. *-commutative90.6%

      \[\leadsto \sqrt{\frac{{\color{blue}{\left(n \cdot \left(2 \cdot \pi\right)\right)}}^{\left(2 \cdot \left(\left(1 - k\right) \cdot 0.5\right)\right)}}{k}} \]
    3. *-commutative90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\left(2 \cdot \color{blue}{\left(0.5 \cdot \left(1 - k\right)\right)}\right)}}{k}} \]
    4. associate-*r*90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\color{blue}{\left(\left(2 \cdot 0.5\right) \cdot \left(1 - k\right)\right)}}}{k}} \]
    5. metadata-eval90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\left(\color{blue}{1} \cdot \left(1 - k\right)\right)}}{k}} \]
    6. *-lft-identity90.6%

      \[\leadsto \sqrt{\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\color{blue}{\left(1 - k\right)}}}{k}} \]
  10. Simplified90.6%

    \[\leadsto \color{blue}{\sqrt{\frac{{\left(n \cdot \left(2 \cdot \pi\right)\right)}^{\left(1 - k\right)}}{k}}} \]
  11. Add Preprocessing

Alternative 4: 39.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{1}{\sqrt{\frac{k}{\pi \cdot n}}} \cdot \sqrt{2} \end{array} \]
(FPCore (k n) :precision binary64 (* (/ 1.0 (sqrt (/ k (* PI n)))) (sqrt 2.0)))
double code(double k, double n) {
	return (1.0 / sqrt((k / (((double) M_PI) * n)))) * sqrt(2.0);
}
public static double code(double k, double n) {
	return (1.0 / Math.sqrt((k / (Math.PI * n)))) * Math.sqrt(2.0);
}
def code(k, n):
	return (1.0 / math.sqrt((k / (math.pi * n)))) * math.sqrt(2.0)
function code(k, n)
	return Float64(Float64(1.0 / sqrt(Float64(k / Float64(pi * n)))) * sqrt(2.0))
end
function tmp = code(k, n)
	tmp = (1.0 / sqrt((k / (pi * n)))) * sqrt(2.0);
end
code[k_, n_] := N[(N[(1.0 / N[Sqrt[N[(k / N[(Pi * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{1}{\sqrt{\frac{k}{\pi \cdot n}}} \cdot \sqrt{2}
\end{array}
Derivation
  1. Initial program 99.2%

    \[\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)} \]
  2. Step-by-step derivation
    1. associate-*l/99.2%

      \[\leadsto \color{blue}{\frac{1 \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}}} \]
    2. *-lft-identity99.2%

      \[\leadsto \frac{\color{blue}{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}}{\sqrt{k}} \]
    3. associate-*l*99.2%

      \[\leadsto \frac{{\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}} \]
    4. div-sub99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\frac{1}{2} - \frac{k}{2}\right)}}}{\sqrt{k}} \]
    5. metadata-eval99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\color{blue}{0.5} - \frac{k}{2}\right)}}{\sqrt{k}} \]
  3. Simplified99.2%

    \[\leadsto \color{blue}{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}}} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. metadata-eval99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\color{blue}{\frac{1}{2}} - \frac{k}{2}\right)}}{\sqrt{k}} \]
    2. div-sub99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\frac{1 - k}{2}\right)}}}{\sqrt{k}} \]
    3. associate-*r*99.2%

      \[\leadsto \frac{{\color{blue}{\left(\left(2 \cdot \pi\right) \cdot n\right)}}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}} \]
    4. sqr-pow98.7%

      \[\leadsto \frac{\color{blue}{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}}{\sqrt{k}} \]
    5. associate-*r*98.7%

      \[\leadsto \frac{{\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{\frac{1 - k}{2}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    6. div-inv98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\color{blue}{\left(1 - k\right) \cdot \frac{1}{2}}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    7. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\left(1 - k\right) \cdot \color{blue}{0.5}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    8. associate-/l*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\left(1 - k\right) \cdot \frac{0.5}{2}\right)}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    9. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot \color{blue}{0.25}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    10. associate-*r*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    11. div-inv98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\color{blue}{\left(1 - k\right) \cdot \frac{1}{2}}}{2}\right)}}{\sqrt{k}} \]
    12. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\left(1 - k\right) \cdot \color{blue}{0.5}}{2}\right)}}{\sqrt{k}} \]
    13. associate-/l*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\left(1 - k\right) \cdot \frac{0.5}{2}\right)}}}{\sqrt{k}} \]
    14. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot \color{blue}{0.25}\right)}}{\sqrt{k}} \]
  6. Applied egg-rr98.7%

    \[\leadsto \frac{\color{blue}{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}}}{\sqrt{k}} \]
  7. Taylor expanded in k around 0 36.0%

    \[\leadsto \color{blue}{\sqrt{\frac{n \cdot \pi}{k}} \cdot \sqrt{2}} \]
  8. Step-by-step derivation
    1. clear-num36.0%

      \[\leadsto \sqrt{\color{blue}{\frac{1}{\frac{k}{n \cdot \pi}}}} \cdot \sqrt{2} \]
    2. sqrt-div36.4%

      \[\leadsto \color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{k}{n \cdot \pi}}}} \cdot \sqrt{2} \]
    3. metadata-eval36.4%

      \[\leadsto \frac{\color{blue}{1}}{\sqrt{\frac{k}{n \cdot \pi}}} \cdot \sqrt{2} \]
  9. Applied egg-rr36.4%

    \[\leadsto \color{blue}{\frac{1}{\sqrt{\frac{k}{n \cdot \pi}}}} \cdot \sqrt{2} \]
  10. Final simplification36.4%

    \[\leadsto \frac{1}{\sqrt{\frac{k}{\pi \cdot n}}} \cdot \sqrt{2} \]
  11. Add Preprocessing

Alternative 5: 39.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sqrt{2} \cdot \sqrt{n \cdot \frac{\pi}{k}} \end{array} \]
(FPCore (k n) :precision binary64 (* (sqrt 2.0) (sqrt (* n (/ PI k)))))
double code(double k, double n) {
	return sqrt(2.0) * sqrt((n * (((double) M_PI) / k)));
}
public static double code(double k, double n) {
	return Math.sqrt(2.0) * Math.sqrt((n * (Math.PI / k)));
}
def code(k, n):
	return math.sqrt(2.0) * math.sqrt((n * (math.pi / k)))
function code(k, n)
	return Float64(sqrt(2.0) * sqrt(Float64(n * Float64(pi / k))))
end
function tmp = code(k, n)
	tmp = sqrt(2.0) * sqrt((n * (pi / k)));
end
code[k_, n_] := N[(N[Sqrt[2.0], $MachinePrecision] * N[Sqrt[N[(n * N[(Pi / k), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\sqrt{2} \cdot \sqrt{n \cdot \frac{\pi}{k}}
\end{array}
Derivation
  1. Initial program 99.2%

    \[\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)} \]
  2. Step-by-step derivation
    1. associate-*l/99.2%

      \[\leadsto \color{blue}{\frac{1 \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}}} \]
    2. *-lft-identity99.2%

      \[\leadsto \frac{\color{blue}{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}}}{\sqrt{k}} \]
    3. associate-*l*99.2%

      \[\leadsto \frac{{\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}} \]
    4. div-sub99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\frac{1}{2} - \frac{k}{2}\right)}}}{\sqrt{k}} \]
    5. metadata-eval99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\color{blue}{0.5} - \frac{k}{2}\right)}}{\sqrt{k}} \]
  3. Simplified99.2%

    \[\leadsto \color{blue}{\frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}}} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. metadata-eval99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\color{blue}{\frac{1}{2}} - \frac{k}{2}\right)}}{\sqrt{k}} \]
    2. div-sub99.2%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\frac{1 - k}{2}\right)}}}{\sqrt{k}} \]
    3. associate-*r*99.2%

      \[\leadsto \frac{{\color{blue}{\left(\left(2 \cdot \pi\right) \cdot n\right)}}^{\left(\frac{1 - k}{2}\right)}}{\sqrt{k}} \]
    4. sqr-pow98.7%

      \[\leadsto \frac{\color{blue}{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}}{\sqrt{k}} \]
    5. associate-*r*98.7%

      \[\leadsto \frac{{\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{\frac{1 - k}{2}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    6. div-inv98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\color{blue}{\left(1 - k\right) \cdot \frac{1}{2}}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    7. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\left(1 - k\right) \cdot \color{blue}{0.5}}{2}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    8. associate-/l*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\left(1 - k\right) \cdot \frac{0.5}{2}\right)}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    9. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot \color{blue}{0.25}\right)} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    10. associate-*r*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\color{blue}{\left(2 \cdot \left(\pi \cdot n\right)\right)}}^{\left(\frac{\frac{1 - k}{2}}{2}\right)}}{\sqrt{k}} \]
    11. div-inv98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\color{blue}{\left(1 - k\right) \cdot \frac{1}{2}}}{2}\right)}}{\sqrt{k}} \]
    12. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\frac{\left(1 - k\right) \cdot \color{blue}{0.5}}{2}\right)}}{\sqrt{k}} \]
    13. associate-/l*98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\color{blue}{\left(\left(1 - k\right) \cdot \frac{0.5}{2}\right)}}}{\sqrt{k}} \]
    14. metadata-eval98.7%

      \[\leadsto \frac{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot \color{blue}{0.25}\right)}}{\sqrt{k}} \]
  6. Applied egg-rr98.7%

    \[\leadsto \frac{\color{blue}{{\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)} \cdot {\left(2 \cdot \left(\pi \cdot n\right)\right)}^{\left(\left(1 - k\right) \cdot 0.25\right)}}}{\sqrt{k}} \]
  7. Taylor expanded in k around 0 36.0%

    \[\leadsto \color{blue}{\sqrt{\frac{n \cdot \pi}{k}} \cdot \sqrt{2}} \]
  8. Step-by-step derivation
    1. associate-/l*36.0%

      \[\leadsto \sqrt{\color{blue}{n \cdot \frac{\pi}{k}}} \cdot \sqrt{2} \]
  9. Simplified36.0%

    \[\leadsto \color{blue}{\sqrt{n \cdot \frac{\pi}{k}} \cdot \sqrt{2}} \]
  10. Final simplification36.0%

    \[\leadsto \sqrt{2} \cdot \sqrt{n \cdot \frac{\pi}{k}} \]
  11. Add Preprocessing

Reproduce

?
herbie shell --seed 2024111 
(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))))