c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}
\begin{array}{l}
t_0 := c0 \cdot \left(\sqrt{\frac{\sqrt[3]{A}}{V}} \cdot \sqrt{\frac{\sqrt[3]{A}}{\frac{\ell}{\sqrt[3]{A}}}}\right)\\
\mathbf{if}\;V \cdot \ell \leq -3.6588971574741957 \cdot 10^{+204}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;V \cdot \ell \leq -2.4449299542679964 \cdot 10^{-232}:\\
\;\;\;\;\left(c0 \cdot \sqrt{\frac{\sqrt[3]{A}}{V \cdot \ell}}\right) \cdot \sqrt{\frac{\sqrt[3]{A}}{\frac{1}{\sqrt[3]{A}}}}\\
\mathbf{elif}\;V \cdot \ell \leq 5.1518 \cdot 10^{-319}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\
\end{array}
(FPCore (c0 A V l) :precision binary64 (* c0 (sqrt (/ A (* V l)))))
(FPCore (c0 A V l)
:precision binary64
(let* ((t_0
(* c0 (* (sqrt (/ (cbrt A) V)) (sqrt (/ (cbrt A) (/ l (cbrt A))))))))
(if (<= (* V l) -3.6588971574741957e+204)
t_0
(if (<= (* V l) -2.4449299542679964e-232)
(*
(* c0 (sqrt (/ (cbrt A) (* V l))))
(sqrt (/ (cbrt A) (/ 1.0 (cbrt A)))))
(if (<= (* V l) 5.1518e-319) t_0 (* c0 (/ (sqrt A) (sqrt (* V l)))))))))double code(double c0, double A, double V, double l) {
return c0 * sqrt(A / (V * l));
}
double code(double c0, double A, double V, double l) {
double t_0 = c0 * (sqrt(cbrt(A) / V) * sqrt(cbrt(A) / (l / cbrt(A))));
double tmp;
if ((V * l) <= -3.6588971574741957e+204) {
tmp = t_0;
} else if ((V * l) <= -2.4449299542679964e-232) {
tmp = (c0 * sqrt(cbrt(A) / (V * l))) * sqrt(cbrt(A) / (1.0 / cbrt(A)));
} else if ((V * l) <= 5.1518e-319) {
tmp = t_0;
} else {
tmp = c0 * (sqrt(A) / sqrt(V * l));
}
return tmp;
}



Bits error versus c0



Bits error versus A



Bits error versus V



Bits error versus l
Results
if (*.f64 V l) < -3.65889715747419566e204 or -2.44492995426799638e-232 < (*.f64 V l) < 5.15182e-319Initial program 40.7
Applied add-cube-cbrt_binary6440.8
Applied associate-/l*_binary6440.9
Applied *-un-lft-identity_binary6440.9
Applied cbrt-prod_binary6440.9
Applied times-frac_binary6434.4
Applied times-frac_binary6426.7
Applied sqrt-prod_binary6415.6
Simplified15.6
if -3.65889715747419566e204 < (*.f64 V l) < -2.44492995426799638e-232Initial program 8.1
Applied add-cube-cbrt_binary648.6
Applied associate-/l*_binary648.6
Applied div-inv_binary648.6
Applied times-frac_binary648.6
Applied sqrt-prod_binary641.0
Applied associate-*r*_binary641.8
if 5.15182e-319 < (*.f64 V l) Initial program 14.6
Applied sqrt-div_binary646.5
Final simplification7.3
herbie shell --seed 2021225
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))