\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}\;\ell \leq -7.704885011833772 \cdot 10^{+180}:\\
\;\;\;\;-\sqrt{\left(U \cdot n\right) \cdot \left(\frac{n \cdot U*}{Om \cdot Om} - \left(\frac{U \cdot n}{Om \cdot Om} + \frac{2}{Om}\right)\right)} \cdot \left(\ell \cdot \sqrt{2}\right)\\
\mathbf{elif}\;\ell \leq -6.804098699339296 \cdot 10^{-204}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \frac{\ell}{Om} \cdot \left(n \cdot \frac{\frac{\ell}{\sqrt[3]{Om} \cdot \sqrt[3]{Om}} \cdot \left(U* - U\right)}{\sqrt[3]{Om}} + \ell \cdot -2\right)\right)\right)}\\
\mathbf{elif}\;\ell \leq 6.821733402645745 \cdot 10^{+150}:\\
\;\;\;\;\sqrt{\left(U \cdot \left(n \cdot 2\right)\right) \cdot \left(t + \frac{\ell}{Om} \cdot \left(\ell \cdot -2 + \left(U* - U\right) \cdot \left(n \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\ell \cdot \sqrt{n \cdot \left(U \cdot \left(2 \cdot \left(\frac{n \cdot U*}{Om \cdot Om} - \left(\frac{U \cdot n}{Om \cdot Om} + \frac{2}{Om}\right)\right)\right)\right)}\\
\end{array}(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l -7.704885011833772e+180)
(-
(*
(sqrt
(*
(* U n)
(- (/ (* n U*) (* Om Om)) (+ (/ (* U n) (* Om Om)) (/ 2.0 Om)))))
(* l (sqrt 2.0))))
(if (<= l -6.804098699339296e-204)
(sqrt
(*
(* n 2.0)
(*
U
(+
t
(*
(/ l Om)
(+
(* n (/ (* (/ l (* (cbrt Om) (cbrt Om))) (- U* U)) (cbrt Om)))
(* l -2.0)))))))
(if (<= l 6.821733402645745e+150)
(sqrt
(*
(* U (* n 2.0))
(+ t (* (/ l Om) (+ (* l -2.0) (* (- U* U) (* n (/ l Om))))))))
(*
l
(sqrt
(*
n
(*
U
(*
2.0
(-
(/ (* n U*) (* Om Om))
(+ (/ (* U n) (* Om Om)) (/ 2.0 Om))))))))))))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 tmp;
if (l <= -7.704885011833772e+180) {
tmp = -(sqrt((U * n) * (((n * U_42_) / (Om * Om)) - (((U * n) / (Om * Om)) + (2.0 / Om)))) * (l * sqrt(2.0)));
} else if (l <= -6.804098699339296e-204) {
tmp = sqrt((n * 2.0) * (U * (t + ((l / Om) * ((n * (((l / (cbrt(Om) * cbrt(Om))) * (U_42_ - U)) / cbrt(Om))) + (l * -2.0))))));
} else if (l <= 6.821733402645745e+150) {
tmp = sqrt((U * (n * 2.0)) * (t + ((l / Om) * ((l * -2.0) + ((U_42_ - U) * (n * (l / Om)))))));
} else {
tmp = l * sqrt(n * (U * (2.0 * (((n * U_42_) / (Om * Om)) - (((U * n) / (Om * Om)) + (2.0 / Om))))));
}
return tmp;
}



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 l < -7.704885011833772e180Initial program 64.0
Simplified52.1
Taylor expanded around -inf 34.6
Simplified33.0
if -7.704885011833772e180 < l < -6.8040986993392963e-204Initial program 31.5
Simplified31.0
rmApplied associate-*l*_binary64_36031.0
Simplified30.4
rmApplied add-cube-cbrt_binary64_45430.5
Applied associate-/r*_binary64_36330.5
Simplified28.9
if -6.8040986993392963e-204 < l < 6.8217334026457453e150Initial program 26.9
Simplified28.3
rmApplied associate-*r*_binary64_35925.5
if 6.8217334026457453e150 < l Initial program 63.4
Simplified46.7
rmApplied add-cube-cbrt_binary64_45446.9
Simplified54.3
Simplified54.3
Taylor expanded around inf 34.9
Simplified34.3
Final simplification27.9
herbie shell --seed 2021097
(FPCore (n U t l Om U*)
:name "Toniolo and Linder, Equation (13)"
:precision binary64
(sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))