\sqrt[3]{\frac{g}{2 \cdot a}}\sqrt[3]{\frac{g}{2}} \cdot \sqrt[3]{\frac{1}{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 / 2.0)))) * ((double) cbrt(((double) (1.0 / a))))));
}



Bits error versus g



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