| Alternative 1 | |
|---|---|
| Accuracy | 98.7% |
| Cost | 13120 |
\[\sqrt[3]{g} \cdot \sqrt[3]{\frac{0.5}{a}}
\]
(FPCore (g a) :precision binary64 (cbrt (/ g (* 2.0 a))))
(FPCore (g a) :precision binary64 (/ (cbrt (* g 0.5)) (cbrt a)))
double code(double g, double a) {
return cbrt((g / (2.0 * a)));
}
double code(double g, double a) {
return cbrt((g * 0.5)) / cbrt(a);
}
public static double code(double g, double a) {
return Math.cbrt((g / (2.0 * a)));
}
public static double code(double g, double a) {
return Math.cbrt((g * 0.5)) / Math.cbrt(a);
}
function code(g, a) return cbrt(Float64(g / Float64(2.0 * a))) end
function code(g, a) return Float64(cbrt(Float64(g * 0.5)) / cbrt(a)) end
code[g_, a_] := N[Power[N[(g / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]
code[g_, a_] := N[(N[Power[N[(g * 0.5), $MachinePrecision], 1/3], $MachinePrecision] / N[Power[a, 1/3], $MachinePrecision]), $MachinePrecision]
\sqrt[3]{\frac{g}{2 \cdot a}}
\frac{\sqrt[3]{g \cdot 0.5}}{\sqrt[3]{a}}
Results
Initial program 75.2%
Applied egg-rr98.7%
[Start]75.2 | \[ \sqrt[3]{\frac{g}{2 \cdot a}}
\] |
|---|---|
associate-/r* [=>]75.2 | \[ \sqrt[3]{\color{blue}{\frac{\frac{g}{2}}{a}}}
\] |
cbrt-div [=>]98.7 | \[ \color{blue}{\frac{\sqrt[3]{\frac{g}{2}}}{\sqrt[3]{a}}}
\] |
div-inv [=>]98.7 | \[ \frac{\sqrt[3]{\color{blue}{g \cdot \frac{1}{2}}}}{\sqrt[3]{a}}
\] |
metadata-eval [=>]98.7 | \[ \frac{\sqrt[3]{g \cdot \color{blue}{0.5}}}{\sqrt[3]{a}}
\] |
Final simplification98.7%
| Alternative 1 | |
|---|---|
| Accuracy | 98.7% |
| Cost | 13120 |
| Alternative 2 | |
|---|---|
| Accuracy | 98.7% |
| Cost | 13120 |
| Alternative 3 | |
|---|---|
| Accuracy | 75.2% |
| Cost | 6720 |
herbie shell --seed 2023138
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2.0 a))))