\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.3244787979006757 \cdot 10^{+192}:\\
\;\;\;\;-t_1\\
\mathbf{elif}\;\ell \leq 2.914456406777243 \cdot 10^{+149}:\\
\;\;\;\;\sqrt{\left(U \cdot \left(n \cdot 2\right)\right) \cdot \left(t + \frac{\ell}{Om} \cdot \mathsf{fma}\left(\ell, -2, \left(U* - U\right) \cdot \frac{n}{\frac{Om}{\ell}}\right)\right)}\\
\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.3244787979006757e+192)
(- t_1)
(if (<= l 2.914456406777243e+149)
(sqrt
(*
(* U (* n 2.0))
(+ t (* (/ l Om) (fma l -2.0 (* (- U* U) (/ n (/ Om l))))))))
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.3244787979006757e+192) {
tmp = -t_1;
} else if (l <= 2.914456406777243e+149) {
tmp = sqrt((U * (n * 2.0)) * (t + ((l / Om) * fma(l, -2.0, ((U_42_ - U) * (n / (Om / l)))))));
} 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.3244787979006757e192Initial program 64.0
Simplified53.2
Taylor expanded around -inf 30.8
Simplified30.8
if -4.3244787979006757e192 < l < 2.914456406777243e149Initial program 29.1
Simplified26.8
rmApplied clear-num_binary6426.8
Applied un-div-inv_binary6426.8
if 2.914456406777243e149 < l Initial program 62.9
Simplified47.9
Taylor expanded around inf 34.4
Simplified34.4
Final simplification27.8
herbie shell --seed 2021211
(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*))))))