c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\begin{array}{l}
\mathbf{if}\;V \cdot \ell \leq -2.807710229850412 \cdot 10^{+282}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\
\mathbf{elif}\;V \cdot \ell \leq -3.3853497944081804 \cdot 10^{-198}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\\
\mathbf{elif}\;V \cdot \ell \leq 0:\\
\;\;\;\;c0 \cdot \left(\sqrt{\frac{\sqrt[3]{A} \cdot \sqrt[3]{A}}{V}} \cdot \sqrt{\frac{\sqrt[3]{A}}{\ell}}\right)\\
\mathbf{elif}\;V \cdot \ell \leq 6.168225696975944 \cdot 10^{+297}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{A \cdot \frac{1}{V}}{\ell}}\\
\end{array}(FPCore (c0 A V l) :precision binary64 (* c0 (sqrt (/ A (* V l)))))
(FPCore (c0 A V l)
:precision binary64
(if (<= (* V l) -2.807710229850412e+282)
(* c0 (sqrt (/ (/ A l) V)))
(if (<= (* V l) -3.3853497944081804e-198)
(* c0 (sqrt (/ A (* V l))))
(if (<= (* V l) 0.0)
(* c0 (* (sqrt (/ (* (cbrt A) (cbrt A)) V)) (sqrt (/ (cbrt A) l))))
(if (<= (* V l) 6.168225696975944e+297)
(* c0 (/ (sqrt A) (sqrt (* V l))))
(* c0 (sqrt (/ (* A (/ 1.0 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 tmp;
if ((V * l) <= -2.807710229850412e+282) {
tmp = c0 * sqrt((A / l) / V);
} else if ((V * l) <= -3.3853497944081804e-198) {
tmp = c0 * sqrt(A / (V * l));
} else if ((V * l) <= 0.0) {
tmp = c0 * (sqrt((cbrt(A) * cbrt(A)) / V) * sqrt(cbrt(A) / l));
} else if ((V * l) <= 6.168225696975944e+297) {
tmp = c0 * (sqrt(A) / sqrt(V * l));
} else {
tmp = c0 * sqrt((A * (1.0 / 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) < -2.807710229850412e282Initial program 39.5
rmApplied add-cube-cbrt_binary64_113639.6
Applied times-frac_binary64_110722.5
rmApplied associate-*l/_binary64_104422.5
Simplified22.4
if -2.807710229850412e282 < (*.f64 V l) < -3.38534979440818e-198Initial program 8.4
if -3.38534979440818e-198 < (*.f64 V l) < 0.0Initial program 47.3
rmApplied add-cube-cbrt_binary64_113647.5
Applied times-frac_binary64_110732.8
Applied sqrt-prod_binary64_111740.3
if 0.0 < (*.f64 V l) < 6.1682256969759444e297Initial program 10.6
rmApplied sqrt-div_binary64_11180.6
if 6.1682256969759444e297 < (*.f64 V l) Initial program 40.0
rmApplied *-un-lft-identity_binary64_110140.0
Applied times-frac_binary64_110722.5
rmApplied associate-*r/_binary64_104322.5
Final simplification12.0
herbie shell --seed 2021025
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))