\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.9
rmApplied div-inv_binary64_142215.9
Applied cbrt-prod_binary64_14530.9
Simplified0.8
rmApplied *-un-lft-identity_binary64_14250.8
Applied add-sqr-sqrt_binary64_14460.8
Applied times-frac_binary64_14310.8
Applied cbrt-prod_binary64_14530.9
Applied associate-*r*_binary64_13670.9
Simplified0.9
rmApplied cbrt-div_binary64_14541.1
Applied associate-*r/_binary64_13691.1
Simplified0.8
rmApplied clear-num_binary64_14240.8
Final simplification0.8
herbie shell --seed 2020280
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2.0 a))))