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



Bits error versus g



Bits error versus a
Results
Initial program 15.3
rmApplied div-inv_binary64_143915.3
Applied cbrt-prod_binary64_14730.9
Simplified0.8
rmApplied cbrt-div_binary64_14740.9
Applied associate-*r/_binary64_13840.9
Simplified0.9
rmApplied add-cbrt-cube_binary64_14781.0
Simplified0.9
rmApplied clear-num_binary64_14410.9
Simplified0.8
Final simplification0.8
herbie shell --seed 2021064
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2.0 a))))