w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}w0 \cdot \sqrt{1 - \frac{h \cdot \frac{M \cdot D}{2 \cdot d}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \frac{\frac{M \cdot D}{2 \cdot d}}{\sqrt[3]{\ell}}}(FPCore (w0 M D h l d) :precision binary64 (* w0 (sqrt (- 1.0 (* (pow (/ (* M D) (* 2.0 d)) 2.0) (/ h l))))))
(FPCore (w0 M D h l d)
:precision binary64
(*
w0
(sqrt
(-
1.0
(*
(/ (* h (/ (* M D) (* 2.0 d))) (* (cbrt l) (cbrt l)))
(/ (/ (* M D) (* 2.0 d)) (cbrt l)))))))double code(double w0, double M, double D, double h, double l, double d) {
return w0 * sqrt(1.0 - (pow(((M * D) / (2.0 * d)), 2.0) * (h / l)));
}
double code(double w0, double M, double D, double h, double l, double d) {
return w0 * sqrt(1.0 - (((h * ((M * D) / (2.0 * d))) / (cbrt(l) * cbrt(l))) * (((M * D) / (2.0 * d)) / cbrt(l))));
}



Bits error versus w0



Bits error versus M



Bits error versus D



Bits error versus h



Bits error versus l



Bits error versus d
Results
Initial program 14.0
rmApplied associate-*r/_binary64_70210.8
Simplified10.8
rmApplied sqr-pow_binary64_73210.8
Applied associate-*r*_binary64_7009.4
Simplified9.4
rmApplied add-cube-cbrt_binary64_7959.4
Applied times-frac_binary64_7668.5
Final simplification8.5
herbie shell --seed 2021102
(FPCore (w0 M D h l d)
:name "Henrywood and Agarwal, Equation (9a)"
:precision binary64
(* w0 (sqrt (- 1.0 (* (pow (/ (* M D) (* 2.0 d)) 2.0) (/ h l))))))