c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}
\begin{array}{l}
t_0 := \left(c0 \cdot \sqrt{\frac{1}{\ell}}\right) \cdot \frac{\sqrt{\frac{A}{\sqrt[3]{V}}}}{\left|\sqrt[3]{V}\right|}\\
\mathbf{if}\;V \cdot \ell \leq -3.9062903098446517 \cdot 10^{+201}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;V \cdot \ell \leq -1.23035359023557 \cdot 10^{-68}:\\
\;\;\;\;c0 \cdot \sqrt{A \cdot \frac{1}{V \cdot \ell}}\\
\mathbf{elif}\;V \cdot \ell \leq 0:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \frac{\left|\frac{\sqrt{A}}{\sqrt[3]{V}}\right|}{\sqrt{\ell \cdot \sqrt[3]{V}}}\\
\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 (/ 1.0 l)))
(/ (sqrt (/ A (cbrt V))) (fabs (cbrt V))))))
(if (<= (* V l) -3.9062903098446517e+201)
t_0
(if (<= (* V l) -1.23035359023557e-68)
(* c0 (sqrt (* A (/ 1.0 (* V l)))))
(if (<= (* V l) 0.0)
t_0
(* c0 (/ (fabs (/ (sqrt A) (cbrt V))) (sqrt (* l (cbrt V))))))))))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(1.0 / l)) * (sqrt(A / cbrt(V)) / fabs(cbrt(V)));
double tmp;
if ((V * l) <= -3.9062903098446517e+201) {
tmp = t_0;
} else if ((V * l) <= -1.23035359023557e-68) {
tmp = c0 * sqrt(A * (1.0 / (V * l)));
} else if ((V * l) <= 0.0) {
tmp = t_0;
} else {
tmp = c0 * (fabs(sqrt(A) / cbrt(V)) / sqrt(l * cbrt(V)));
}
return tmp;
}



Bits error versus c0



Bits error versus A



Bits error versus V



Bits error versus l
Results
if (*.f64 V l) < -3.90629030984465169e201 or -1.2303535902355699e-68 < (*.f64 V l) < -0.0Initial program 32.9
Applied add-cube-cbrt_binary6433.1
Applied times-frac_binary6423.8
Applied add-cube-cbrt_binary6423.9
Applied times-frac_binary6423.9
Applied associate-*l*_binary6423.2
Applied associate-*l/_binary6423.8
Applied sqrt-div_binary6415.1
Simplified18.5
Simplified18.5
Applied *-un-lft-identity_binary6418.5
Applied cbrt-prod_binary6418.5
Applied fabs-mul_binary6418.5
Applied *-un-lft-identity_binary6418.5
Applied times-frac_binary6415.4
Applied sqrt-prod_binary648.8
Applied times-frac_binary648.8
Applied associate-*r*_binary649.0
Simplified9.0
if -3.90629030984465169e201 < (*.f64 V l) < -1.2303535902355699e-68Initial program 5.7
Applied div-inv_binary645.7
if -0.0 < (*.f64 V l) Initial program 15.3
Applied add-cube-cbrt_binary6415.6
Applied times-frac_binary6416.6
Applied add-cube-cbrt_binary6416.7
Applied times-frac_binary6416.7
Applied associate-*l*_binary6414.2
Applied frac-times_binary6414.4
Applied associate-*r/_binary6416.1
Applied sqrt-div_binary649.5
Simplified3.3
Simplified3.3
Final simplification5.7
herbie shell --seed 2021275
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))