w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}w0 \cdot \sqrt{1 - \frac{\sqrt[3]{h}}{\sqrt[3]{\ell}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\sqrt[3]{h}}{\sqrt[3]{\ell}}\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\sqrt[3]{h}}{\sqrt[3]{\ell}}\right)\right)}(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
(*
(/ (cbrt h) (cbrt l))
(*
(* (/ (* M D) (* 2.0 d)) (/ (cbrt h) (cbrt l)))
(* (/ (* M D) (* 2.0 d)) (/ (cbrt h) (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 - ((cbrt(h) / cbrt(l)) * ((((M * D) / (2.0 * d)) * (cbrt(h) / cbrt(l))) * (((M * D) / (2.0 * d)) * (cbrt(h) / 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 13.9
rmApplied add-cube-cbrt_binary6414.0
Applied add-cube-cbrt_binary6414.0
Applied times-frac_binary6414.0
Applied associate-*r*_binary6411.2
rmApplied times-frac_binary6411.2
Applied add-sqr-sqrt_binary6428.4
Applied unpow-prod-down_binary6428.4
Applied unswap-sqr_binary6426.8
Simplified26.8
Simplified8.6
Final simplification8.6
herbie shell --seed 2020219
(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))))))