\sqrt[3]{\frac{g}{2 \cdot a}}\frac{1}{\frac{\sqrt[3]{a}}{\sqrt[3]{-1}} \cdot \frac{\sqrt[3]{-2}}{\sqrt[3]{g}}}double code(double g, double a) {
return cbrt((g / (2.0 * a)));
}
double code(double g, double a) {
return (1.0 / ((cbrt(a) / cbrt(-1.0)) * (cbrt(-2.0) / cbrt(g))));
}



Bits error versus g



Bits error versus a
Results
Initial program 15.3
rmApplied frac-2neg15.3
Applied cbrt-div0.8
rmApplied clear-num0.8
rmApplied neg-mul-10.8
Applied cbrt-prod0.8
Applied *-commutative0.8
Applied distribute-rgt-neg-in0.8
Applied cbrt-prod1.1
Applied times-frac1.1
Final simplification1.1
herbie shell --seed 2020078
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2 a))))