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



Bits error versus g



Bits error versus a
Results
Initial program 15.3
rmApplied associate-/r*15.3
Applied cbrt-div0.8
rmApplied clear-num0.8
Applied cbrt-div0.9
Simplified0.9
rmApplied div-inv0.9
rmApplied clear-num0.9
Applied cbrt-div0.8
Applied associate-/r/0.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2020078 +o rules:numerics
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2 a))))