\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}\;U* \le -20628.158740343424:\\
\;\;\;\;\sqrt{{\left(\left(\left(2 \cdot n\right) \cdot \left(t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) - \left(-n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(2 \cdot \frac{2}{2}\right)}\right) \cdot \left(U - U*\right)\right)\right)\right) \cdot U\right)}^{1}}\\
\mathbf{elif}\;U* \le -3.38886052338754529 \cdot 10^{-282}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) - \left(-n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(2 \cdot \frac{2}{2}\right)}\right) \cdot \left(U - U*\right)\right)\right)\right)}\\
\mathbf{elif}\;U* \le 2.66582174134472983 \cdot 10^{-120}:\\
\;\;\;\;\sqrt{{\left(\left(\left(2 \cdot n\right) \cdot \left(t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) - \left(-n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(2 \cdot \frac{2}{2}\right)}\right) \cdot \left(U - U*\right)\right)\right)\right) \cdot U\right)}^{1}}\\
\mathbf{elif}\;U* \le 6.37844133114075821 \cdot 10^{-28}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot U} \cdot \sqrt{\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \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)}\\
\mathbf{elif}\;U* \le 1.3559215670195436 \cdot 10^{141}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(\left(\left(n \cdot {\ell}^{\left(\frac{2}{2}\right)}\right) \cdot {\left(\frac{1}{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)}\\
\mathbf{elif}\;U* \le 7.30429266906966537 \cdot 10^{231}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) - \left(-n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(2 \cdot \frac{2}{2}\right)}\right) \cdot \left(U - U*\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \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)}\\
\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 temp;
if ((U_42_ <= -20628.158740343424)) {
temp = sqrt(pow((((2.0 * n) * (t - ((2.0 * (l * (l / Om))) - (-(n * pow((l / Om), (2.0 * (2.0 / 2.0)))) * (U - U_42_))))) * U), 1.0));
} else {
double temp_1;
if ((U_42_ <= -3.3888605233875453e-282)) {
temp_1 = sqrt(((2.0 * n) * (U * (t - ((2.0 * (l * (l / Om))) - (-(n * pow((l / Om), (2.0 * (2.0 / 2.0)))) * (U - U_42_)))))));
} else {
double temp_2;
if ((U_42_ <= 2.66582174134473e-120)) {
temp_2 = sqrt(pow((((2.0 * n) * (t - ((2.0 * (l * (l / Om))) - (-(n * pow((l / Om), (2.0 * (2.0 / 2.0)))) * (U - U_42_))))) * U), 1.0));
} else {
double temp_3;
if ((U_42_ <= 6.378441331140758e-28)) {
temp_3 = (sqrt(((2.0 * n) * U)) * sqrt(((t - (2.0 * (l * (l / Om)))) - (((n * pow((l / Om), (2.0 / 2.0))) * pow((l / Om), (2.0 / 2.0))) * (U - U_42_)))));
} else {
double temp_4;
if ((U_42_ <= 1.3559215670195436e+141)) {
temp_4 = sqrt((((2.0 * n) * U) * ((t - (2.0 * (l * (l / Om)))) - ((((n * pow(l, (2.0 / 2.0))) * pow((1.0 / Om), (2.0 / 2.0))) * pow((l / Om), (2.0 / 2.0))) * (U - U_42_)))));
} else {
double temp_5;
if ((U_42_ <= 7.304292669069665e+231)) {
temp_5 = sqrt(((2.0 * n) * (U * (t - ((2.0 * (l * (l / Om))) - (-(n * pow((l / Om), (2.0 * (2.0 / 2.0)))) * (U - U_42_)))))));
} else {
temp_5 = sqrt((((2.0 * n) * U) * ((t - (2.0 * (l * (l / Om)))) - (((n * pow((l / Om), (2.0 / 2.0))) * pow((l / Om), (2.0 / 2.0))) * (U - U_42_)))));
}
temp_4 = temp_5;
}
temp_3 = temp_4;
}
temp_2 = temp_3;
}
temp_1 = temp_2;
}
temp = temp_1;
}
return temp;
}



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 U* < -20628.158740343424 or -3.3888605233875453e-282 < U* < 2.66582174134473e-120Initial program 35.7
rmApplied *-un-lft-identity35.7
Applied times-frac33.4
Simplified33.4
rmApplied sqr-pow33.4
Applied associate-*r*32.4
rmApplied pow132.4
Applied pow132.4
Applied pow132.4
Applied pow132.4
Applied pow-prod-down32.4
Applied pow-prod-down32.4
Applied pow-prod-down32.4
Simplified33.2
if -20628.158740343424 < U* < -3.3888605233875453e-282 or 1.3559215670195436e+141 < U* < 7.304292669069665e+231Initial program 33.3
rmApplied *-un-lft-identity33.3
Applied times-frac30.7
Simplified30.7
rmApplied sqr-pow30.7
Applied associate-*r*29.8
rmApplied associate-*l*30.6
Simplified31.8
if 2.66582174134473e-120 < U* < 6.378441331140758e-28Initial program 34.9
rmApplied *-un-lft-identity34.9
Applied times-frac31.7
Simplified31.7
rmApplied sqr-pow31.7
Applied associate-*r*30.8
rmApplied sqrt-prod42.6
if 6.378441331140758e-28 < U* < 1.3559215670195436e+141Initial program 34.1
rmApplied *-un-lft-identity34.1
Applied times-frac31.2
Simplified31.2
rmApplied sqr-pow31.2
Applied associate-*r*30.0
rmApplied div-inv30.0
Applied unpow-prod-down30.0
Applied associate-*r*30.7
if 7.304292669069665e+231 < U* Initial program 38.5
rmApplied *-un-lft-identity38.5
Applied times-frac36.5
Simplified36.5
rmApplied sqr-pow36.5
Applied associate-*r*35.3
Final simplification33.2
herbie shell --seed 2020049
(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*))))))