\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}
t_1 := \sqrt{n \cdot \left(U \cdot \left(\frac{n \cdot U*}{Om \cdot Om} - \left(\frac{2}{Om} + \frac{n \cdot U}{Om \cdot Om}\right)\right)\right)} \cdot \left(\ell \cdot \sqrt{2}\right)\\
\mathbf{if}\;\ell \leq -4.4145538920199726 \cdot 10^{+216}:\\
\;\;\;\;-t_1\\
\mathbf{elif}\;\ell \leq -1.2256465787638794 \cdot 10^{-250}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \frac{\ell}{Om} \cdot \mathsf{fma}\left(\ell, -2, \left(U* - U\right) \cdot \left(n \cdot \frac{\ell}{Om}\right)\right)\right)\right)}\\
\mathbf{elif}\;\ell \leq 2.5567706821104412 \cdot 10^{-89}:\\
\;\;\;\;\sqrt{\left(U \cdot \left(n \cdot 2\right)\right) \cdot \left(t + \frac{\ell}{Om} \cdot \mathsf{fma}\left(\ell, -2, \frac{\left(U* - U\right) \cdot \left(\ell \cdot n\right)}{Om}\right)\right)}\\
\mathbf{elif}\;\ell \leq 4.97448361765691 \cdot 10^{+49}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\ell, -2, \left(U* - U\right) \cdot \frac{\ell \cdot n}{Om}\right), t\right)\right)}\\
\mathbf{elif}\;\ell \leq 3.9495739243810636 \cdot 10^{+123}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot \left(U \cdot t\right)\right) - 4 \cdot \frac{n \cdot \left(U \cdot {\ell}^{2}\right)}{Om}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\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
(let* ((t_1
(*
(sqrt
(*
n
(*
U
(- (/ (* n U*) (* Om Om)) (+ (/ 2.0 Om) (/ (* n U) (* Om Om)))))))
(* l (sqrt 2.0)))))
(if (<= l -4.4145538920199726e+216)
(- t_1)
(if (<= l -1.2256465787638794e-250)
(sqrt
(*
(* n 2.0)
(* U (+ t (* (/ l Om) (fma l -2.0 (* (- U* U) (* n (/ l Om)))))))))
(if (<= l 2.5567706821104412e-89)
(sqrt
(*
(* U (* n 2.0))
(+ t (* (/ l Om) (fma l -2.0 (/ (* (- U* U) (* l n)) Om))))))
(if (<= l 4.97448361765691e+49)
(sqrt
(*
(* n 2.0)
(* U (fma (/ l Om) (fma l -2.0 (* (- U* U) (/ (* l n) Om))) t))))
(if (<= l 3.9495739243810636e+123)
(sqrt
(- (* 2.0 (* n (* U t))) (* 4.0 (/ (* n (* U (pow l 2.0))) Om))))
t_1)))))))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 t_1 = sqrt(n * (U * (((n * U_42_) / (Om * Om)) - ((2.0 / Om) + ((n * U) / (Om * Om)))))) * (l * sqrt(2.0));
double tmp;
if (l <= -4.4145538920199726e+216) {
tmp = -t_1;
} else if (l <= -1.2256465787638794e-250) {
tmp = sqrt((n * 2.0) * (U * (t + ((l / Om) * fma(l, -2.0, ((U_42_ - U) * (n * (l / Om))))))));
} else if (l <= 2.5567706821104412e-89) {
tmp = sqrt((U * (n * 2.0)) * (t + ((l / Om) * fma(l, -2.0, (((U_42_ - U) * (l * n)) / Om)))));
} else if (l <= 4.97448361765691e+49) {
tmp = sqrt((n * 2.0) * (U * fma((l / Om), fma(l, -2.0, ((U_42_ - U) * ((l * n) / Om))), t)));
} else if (l <= 3.9495739243810636e+123) {
tmp = sqrt((2.0 * (n * (U * t))) - (4.0 * ((n * (U * pow(l, 2.0))) / Om)));
} else {
tmp = t_1;
}
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*
if l < -4.4145538920199726e216Initial program 64.0
Simplified56.7
Taylor expanded in l around -inf 31.5
Simplified31.5
if -4.4145538920199726e216 < l < -1.22564657876387938e-250Initial program 31.8
Simplified27.7
Applied associate-*l*_binary6427.6
if -1.22564657876387938e-250 < l < 2.5567706821104412e-89Initial program 24.7
Simplified24.1
Applied associate-*r/_binary6424.5
Applied associate-*r/_binary6424.7
if 2.5567706821104412e-89 < l < 4.9744836176569097e49Initial program 31.6
Simplified29.8
Applied associate-*l*_binary6426.5
Simplified26.8
if 4.9744836176569097e49 < l < 3.94957392438106359e123Initial program 31.5
Simplified29.5
Taylor expanded in Om around inf 31.7
if 3.94957392438106359e123 < l Initial program 58.9
Simplified46.6
Taylor expanded in l around inf 36.0
Simplified36.0
Final simplification28.1
herbie shell --seed 2022103
(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*))))))