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



Bits error versus g



Bits error versus a
Results
Initial program 15.0
rmApplied cbrt-div0.9
rmApplied clear-num0.9
rmApplied div-inv0.9
Applied associate-/r*0.9
Final simplification0.9
herbie shell --seed 2020196
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2.0 a))))