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



Bits error versus g



Bits error versus a
Results
Initial program 15.3
rmApplied div-inv15.3
Applied cbrt-prod0.9
rmApplied add-sqr-sqrt0.9
Applied times-frac0.8
Applied cbrt-prod0.8
Applied associate-*r*0.8
Simplified0.8
rmApplied cbrt-unprod0.8
Final simplification0.8
herbie shell --seed 2020078 +o rules:numerics
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2 a))))