c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}
\begin{array}{l}
t_0 := \sqrt{\frac{A}{V}}\\
\mathbf{if}\;V \cdot \ell \leq -7.52144986366842 \cdot 10^{+124}:\\
\;\;\;\;\frac{c0 \cdot t_0}{\sqrt{\ell}}\\
\mathbf{elif}\;V \cdot \ell \leq -1.3546975018692183 \cdot 10^{-146}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\\
\mathbf{elif}\;V \cdot \ell \leq 0:\\
\;\;\;\;c0 \cdot \frac{t_0}{\sqrt{\ell}}\\
\mathbf{elif}\;V \cdot \ell \leq 5.970120430153575 \cdot 10^{+246}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{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 (sqrt (/ A V))))
(if (<= (* V l) -7.52144986366842e+124)
(/ (* c0 t_0) (sqrt l))
(if (<= (* V l) -1.3546975018692183e-146)
(* c0 (sqrt (/ A (* V l))))
(if (<= (* V l) 0.0)
(* c0 (/ t_0 (sqrt l)))
(if (<= (* V l) 5.970120430153575e+246)
(* c0 (/ (sqrt A) (sqrt (* V l))))
(* c0 (sqrt (/ (/ A l) 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 = sqrt(A / V);
double tmp;
if ((V * l) <= -7.52144986366842e+124) {
tmp = (c0 * t_0) / sqrt(l);
} else if ((V * l) <= -1.3546975018692183e-146) {
tmp = c0 * sqrt(A / (V * l));
} else if ((V * l) <= 0.0) {
tmp = c0 * (t_0 / sqrt(l));
} else if ((V * l) <= 5.970120430153575e+246) {
tmp = c0 * (sqrt(A) / sqrt(V * l));
} else {
tmp = c0 * sqrt((A / l) / V);
}
return tmp;
}



Bits error versus c0



Bits error versus A



Bits error versus V



Bits error versus l
Results
if (*.f64 V l) < -7.52144986366842e124Initial program 24.8
Applied add-cube-cbrt_binary6425.0
Applied times-frac_binary6418.5
Applied associate-*r/_binary6419.2
Applied sqrt-div_binary6410.0
Applied associate-*r/_binary6412.1
Simplified11.8
if -7.52144986366842e124 < (*.f64 V l) < -1.3546975018692183e-146Initial program 5.1
Applied add-cube-cbrt_binary645.6
Applied times-frac_binary6413.8
Applied pow1_binary6413.8
Applied pow1_binary6413.8
Applied pow-prod-down_binary6413.8
Simplified5.1
if -1.3546975018692183e-146 < (*.f64 V l) < 0.0Initial program 41.8
Applied add-cube-cbrt_binary6442.0
Applied times-frac_binary6430.0
Applied associate-*r/_binary6430.2
Applied sqrt-div_binary6420.8
Simplified20.5
if 0.0 < (*.f64 V l) < 5.9701204301535753e246Initial program 9.8
Applied sqrt-div_binary640.7
if 5.9701204301535753e246 < (*.f64 V l) Initial program 33.8
Applied add-cube-cbrt_binary6433.9
Applied times-frac_binary6420.0
Applied associate-*l/_binary6420.0
Simplified19.8
Final simplification8.7
herbie shell --seed 2022125
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))