\sqrt[3]{\frac{g}{2 \cdot a}}\sqrt[3]{\frac{1}{a}} \cdot \sqrt[3]{\frac{g}{2}}double f(double g, double a) {
double r132291 = g;
double r132292 = 2.0;
double r132293 = a;
double r132294 = r132292 * r132293;
double r132295 = r132291 / r132294;
double r132296 = cbrt(r132295);
return r132296;
}
double f(double g, double a) {
double r132297 = 1.0;
double r132298 = a;
double r132299 = r132297 / r132298;
double r132300 = cbrt(r132299);
double r132301 = g;
double r132302 = 2.0;
double r132303 = r132301 / r132302;
double r132304 = cbrt(r132303);
double r132305 = r132300 * r132304;
return r132305;
}



Bits error versus g



Bits error versus a
Results
Initial program 15.5
rmApplied div-inv15.5
Applied cbrt-prod0.9
rmApplied add-cube-cbrt0.9
Applied times-frac0.8
Applied cbrt-prod0.8
Applied associate-*r*0.8
Simplified0.8
rmApplied cbrt-unprod0.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2019304 +o rules:numerics
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2 a))))