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(g)) * ((double) (((double) cbrt(-0.5)) * ((double) cbrt(((double) (-1.0 / a))))))));
}



Bits error versus g



Bits error versus a
Results
Initial program 16.3
rmApplied div-inv16.3
Applied cbrt-prod0.9
Taylor expanded around -inf 34.9
Simplified0.8
Final simplification0.8
herbie shell --seed 2020181
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2.0 a))))