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



Bits error versus g



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