\sqrt[3]{\frac{g}{2 \cdot a}}\frac{1}{\frac{\sqrt[3]{2 \cdot a}}{\sqrt[3]{g}}}double f(double g, double a) {
double r123009 = g;
double r123010 = 2.0;
double r123011 = a;
double r123012 = r123010 * r123011;
double r123013 = r123009 / r123012;
double r123014 = cbrt(r123013);
return r123014;
}
double f(double g, double a) {
double r123015 = 1.0;
double r123016 = 2.0;
double r123017 = a;
double r123018 = r123016 * r123017;
double r123019 = cbrt(r123018);
double r123020 = g;
double r123021 = cbrt(r123020);
double r123022 = r123019 / r123021;
double r123023 = r123015 / r123022;
return r123023;
}



Bits error versus g



Bits error versus a
Results
Initial program 15.4
rmApplied cbrt-div0.8
Simplified0.8
rmApplied *-un-lft-identity0.8
Applied cbrt-prod0.8
Applied associate-/l*0.8
Simplified0.8
rmApplied add-cube-cbrt0.8
Applied associate-/l*0.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2019195 +o rules:numerics
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
(cbrt (/ g (* 2.0 a))))