\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 r130695 = g;
double r130696 = 2.0;
double r130697 = a;
double r130698 = r130696 * r130697;
double r130699 = r130695 / r130698;
double r130700 = cbrt(r130699);
return r130700;
}
double f(double g, double a) {
double r130701 = 1.0;
double r130702 = a;
double r130703 = r130701 / r130702;
double r130704 = cbrt(r130703);
double r130705 = g;
double r130706 = 2.0;
double r130707 = r130705 / r130706;
double r130708 = cbrt(r130707);
double r130709 = r130704 * r130708;
return r130709;
}



Bits error versus g



Bits error versus a
Results
Initial program 15.9
rmApplied div-inv15.9
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 2019322 +o rules:numerics
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2 a))))