\sqrt{\left|\frac{a \cdot a - b \cdot b}{a \cdot a}\right|}\sqrt{\left|1 - \log \left(e^{\sqrt[3]{{\left(\frac{b}{a}\right)}^{6}}}\right)\right|}(FPCore (a b) :precision binary64 (sqrt (fabs (/ (- (* a a) (* b b)) (* a a)))))
(FPCore (a b) :precision binary64 (sqrt (fabs (- 1.0 (log (exp (cbrt (pow (/ b a) 6.0))))))))
double code(double a, double b) {
return sqrt(fabs(((a * a) - (b * b)) / (a * a)));
}
double code(double a, double b) {
return sqrt(fabs(1.0 - log(exp(cbrt(pow((b / a), 6.0))))));
}



Bits error versus a



Bits error versus b
Results
Initial program 14.4
Simplified14.5
rmApplied add-cbrt-cube_binary64_79914.5
Simplified0.0
rmApplied add-log-exp_binary64_8020.0
Final simplification0.0
herbie shell --seed 2020289
(FPCore (a b)
:name "Eccentricity of an ellipse"
:precision binary64
:pre (<= 0.0 b a 1.0)
(sqrt (fabs (/ (- (* a a) (* b b)) (* a a)))))