\[\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}
\]
↓
\[{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(0.5 + k \cdot -0.5\right)} \cdot {k}^{-0.5}
\]
(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 (* (* 2.0 PI) n) (+ 0.5 (* k -0.5))) (pow k -0.5)))
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(((2.0 * ((double) M_PI)) * n), (0.5 + (k * -0.5))) * pow(k, -0.5);
}
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));
}
↓
public static double code(double k, double n) {
return Math.pow(((2.0 * Math.PI) * n), (0.5 + (k * -0.5))) * Math.pow(k, -0.5);
}
def code(k, n):
return (1.0 / math.sqrt(k)) * math.pow(((2.0 * math.pi) * n), ((1.0 - k) / 2.0))
↓
def code(k, n):
return math.pow(((2.0 * math.pi) * n), (0.5 + (k * -0.5))) * math.pow(k, -0.5)
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 code(k, n)
return Float64((Float64(Float64(2.0 * pi) * n) ^ Float64(0.5 + Float64(k * -0.5))) * (k ^ -0.5))
end
function tmp = code(k, n)
tmp = (1.0 / sqrt(k)) * (((2.0 * pi) * n) ^ ((1.0 - k) / 2.0));
end
↓
function tmp = code(k, n)
tmp = (((2.0 * pi) * n) ^ (0.5 + (k * -0.5))) * (k ^ -0.5);
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]
↓
code[k_, n_] := N[(N[Power[N[(N[(2.0 * Pi), $MachinePrecision] * n), $MachinePrecision], N[(0.5 + N[(k * -0.5), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[k, -0.5], $MachinePrecision]), $MachinePrecision]
\frac{1}{\sqrt{k}} \cdot {\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(\frac{1 - k}{2}\right)}
↓
{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(0.5 + k \cdot -0.5\right)} \cdot {k}^{-0.5}
Alternatives
| Alternative 1 |
|---|
| Accuracy | 98.0% |
|---|
| Cost | 19908 |
|---|
\[\begin{array}{l}
\mathbf{if}\;k \leq 10^{-78}:\\
\;\;\;\;\frac{\sqrt{2 \cdot n}}{\sqrt{\frac{k}{\pi}}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{{\left(\left(2 \cdot \pi\right) \cdot n\right)}^{\left(1 - k\right)}}{k}}\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 99.2% |
|---|
| Cost | 19904 |
|---|
\[\frac{{\left(\pi \cdot \left(2 \cdot n\right)\right)}^{\left(0.5 - \frac{k}{2}\right)}}{\sqrt{k}}
\]
| Alternative 3 |
|---|
| Accuracy | 67.6% |
|---|
| Cost | 19844 |
|---|
\[\begin{array}{l}
\mathbf{if}\;k \leq 10^{+189}:\\
\;\;\;\;\frac{\sqrt{2 \cdot n}}{\sqrt{\frac{k}{\pi}}}\\
\mathbf{else}:\\
\;\;\;\;{\left({\left(n \cdot \left(2 \cdot \frac{\pi}{k}\right)\right)}^{1.5}\right)}^{0.3333333333333333}\\
\end{array}
\]
| Alternative 4 |
|---|
| Accuracy | 67.6% |
|---|
| Cost | 19780 |
|---|
\[\begin{array}{l}
\mathbf{if}\;k \leq 2 \cdot 10^{+105}:\\
\;\;\;\;\frac{\sqrt{2 \cdot n}}{\sqrt{\frac{k}{\pi}}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(n \cdot \frac{2}{\frac{k}{\pi}}\right)}^{1.5}}\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 67.6% |
|---|
| Cost | 19780 |
|---|
\[\begin{array}{l}
\mathbf{if}\;k \leq 10^{+87}:\\
\;\;\;\;\frac{\sqrt{2 \cdot n}}{\sqrt{\frac{k}{\pi}}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(\left(2 \cdot \pi\right) \cdot \frac{n}{k}\right)}^{1.5}}\\
\end{array}
\]
| Alternative 6 |
|---|
| Accuracy | 66.0% |
|---|
| Cost | 19584 |
|---|
\[\sqrt{2 \cdot n} \cdot \sqrt{\frac{\pi}{k}}
\]
| Alternative 7 |
|---|
| Accuracy | 66.1% |
|---|
| Cost | 19584 |
|---|
\[\frac{\sqrt{2 \cdot n}}{\sqrt{\frac{k}{\pi}}}
\]
| Alternative 8 |
|---|
| Accuracy | 49.3% |
|---|
| Cost | 13184 |
|---|
\[\sqrt{2 \cdot \left(n \cdot \frac{\pi}{k}\right)}
\]
| Alternative 9 |
|---|
| Accuracy | 49.3% |
|---|
| Cost | 13184 |
|---|
\[\sqrt{2 \cdot \left(\pi \cdot \frac{n}{k}\right)}
\]