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



Bits error versus g



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