\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 r107317 = g;
double r107318 = 2.0;
double r107319 = a;
double r107320 = r107318 * r107319;
double r107321 = r107317 / r107320;
double r107322 = cbrt(r107321);
return r107322;
}
double f(double g, double a) {
double r107323 = 1.0;
double r107324 = 2.0;
double r107325 = a;
double r107326 = r107324 * r107325;
double r107327 = cbrt(r107326);
double r107328 = g;
double r107329 = cbrt(r107328);
double r107330 = r107327 / r107329;
double r107331 = r107323 / r107330;
return r107331;
}



Bits error versus g



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