w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}
\begin{array}{l}
t_0 := \frac{M \cdot D}{2 \cdot d}\\
w0 \cdot \sqrt{1 - t_0 \cdot \left(h \cdot \frac{t_0}{\ell}\right)}
\end{array}
(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 (let* ((t_0 (/ (* M D) (* 2.0 d)))) (* w0 (sqrt (- 1.0 (* t_0 (* h (/ t_0 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) {
double t_0 = (M * D) / (2.0 * d);
return w0 * sqrt((1.0 - (t_0 * (h * (t_0 / 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.4
Applied unpow2_binary6414.4
Applied associate-*l*_binary6413.0
Applied associate-*r/_binary648.8
Applied add-cbrt-cube_binary6413.1
Simplified13.1
Applied *-un-lft-identity_binary6413.1
Applied times-frac_binary6413.1
Applied unpow-prod-down_binary6428.4
Applied cbrt-prod_binary6428.0
Simplified13.8
Simplified8.8
Final simplification8.8
herbie shell --seed 2022160
(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))))))