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



Bits error versus g



Bits error versus a
Results
Initial program 15.8
rmApplied div-inv15.8
Applied cbrt-prod0.9
rmApplied *-un-lft-identity0.9
Applied times-frac0.8
Applied cbrt-prod0.9
Applied associate-*r*0.9
rmApplied cbrt-unprod0.8
rmApplied cbrt-div0.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2020161
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2.0 a))))