\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\begin{array}{l}
\mathbf{if}\;t \le 1.9876102665034602 \cdot 10^{-277}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(\left(t - \mathsf{fma}\left(2, \ell \cdot \frac{\ell}{Om}, \left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)}\right) \cdot {\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)}\right) \cdot \left(U - U*\right)\right)\right) \cdot U\right)}\\
\mathbf{elif}\;t \le 7.0682452295579051 \cdot 10^{-194}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot U} \cdot \sqrt{\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\\
\mathbf{elif}\;t \le 1.27417870444832373 \cdot 10^{126}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot \left(t - \mathsf{fma}\left(2, \ell \cdot \frac{\ell}{Om}, \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)\right) \cdot U}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot U} \cdot \sqrt{\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\\
\end{array}double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
double code(double n, double U, double t, double l, double Om, double U_42_) {
double VAR;
if ((t <= 1.9876102665034602e-277)) {
VAR = sqrt(((2.0 * n) * ((t - fma(2.0, (l * (l / Om)), (((n * pow((l / Om), (2.0 / 2.0))) * pow((l / Om), (2.0 / 2.0))) * (U - U_42_)))) * U)));
} else {
double VAR_1;
if ((t <= 7.068245229557905e-194)) {
VAR_1 = (sqrt(((2.0 * n) * U)) * sqrt(((t - (2.0 * (l * (l / Om)))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
} else {
double VAR_2;
if ((t <= 1.2741787044483237e+126)) {
VAR_2 = sqrt((((2.0 * n) * (t - fma(2.0, (l * (l / Om)), ((n * pow((l / Om), 2.0)) * (U - U_42_))))) * U));
} else {
VAR_2 = (sqrt(((2.0 * n) * U)) * sqrt(((t - (2.0 * (l * (l / Om)))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
VAR_1 = VAR_2;
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus n



Bits error versus U



Bits error versus t



Bits error versus l



Bits error versus Om



Bits error versus U*
Results
if t < 1.9876102665034602e-277Initial program 35.0
rmApplied *-un-lft-identity35.0
Applied times-frac32.3
Simplified32.3
rmApplied associate-*l*31.8
Simplified31.8
rmApplied sqr-pow31.8
Applied associate-*r*30.6
if 1.9876102665034602e-277 < t < 7.068245229557905e-194 or 1.2741787044483237e+126 < t Initial program 36.4
rmApplied *-un-lft-identity36.4
Applied times-frac33.9
Simplified33.9
rmApplied sqrt-prod26.6
if 7.068245229557905e-194 < t < 1.2741787044483237e+126Initial program 32.3
rmApplied *-un-lft-identity32.3
Applied times-frac29.7
Simplified29.7
rmApplied associate-*l*29.9
Simplified29.9
rmApplied associate-*r*29.8
Final simplification29.5
herbie shell --seed 2020102 +o rules:numerics
(FPCore (n U t l Om U*)
:name "Toniolo and Linder, Equation (13)"
:precision binary64
(sqrt (* (* (* 2 n) U) (- (- t (* 2 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2)) (- U U*))))))