\sqrt[3]{\frac{g}{2 \cdot a}}\frac{\sqrt[3]{g \cdot 0.5}}{\sqrt[3]{a}}double code(double g, double a) {
return ((double) cbrt(((double) (g / ((double) (2.0 * a))))));
}
double code(double g, double a) {
return ((double) (((double) cbrt(((double) (g * 0.5)))) / ((double) cbrt(a))));
}



Bits error versus g



Bits error versus a
Results
Initial program 15.8
rmApplied div-inv15.8
Applied cbrt-prod0.9
Taylor expanded around 0 33.9
Simplified0.9
rmApplied associate-*r/0.9
rmApplied cbrt-unprod0.8
Final simplification0.8
herbie shell --seed 2020184
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2.0 a))))