\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 r116818 = g;
double r116819 = 2.0;
double r116820 = a;
double r116821 = r116819 * r116820;
double r116822 = r116818 / r116821;
double r116823 = cbrt(r116822);
return r116823;
}
double f(double g, double a) {
double r116824 = 1.0;
double r116825 = a;
double r116826 = r116824 / r116825;
double r116827 = cbrt(r116826);
double r116828 = g;
double r116829 = 2.0;
double r116830 = r116828 / r116829;
double r116831 = cbrt(r116830);
double r116832 = r116827 * r116831;
return r116832;
}



Bits error versus g



Bits error versus a
Results
Initial program 15.4
rmApplied div-inv15.4
Applied cbrt-prod0.9
rmApplied add-cube-cbrt0.9
Applied times-frac0.9
Applied cbrt-prod0.9
Applied associate-*r*0.9
Simplified0.9
rmApplied cbrt-unprod0.9
Simplified0.9
Final simplification0.9
herbie shell --seed 2019325
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2 a))))