\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 := U \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\ell, -2, \left(U* - U\right) \cdot \left(n \cdot \frac{\ell}{Om}\right)\right), t\right)\\
\mathbf{if}\;n \leq 2.23999759039676 \cdot 10^{-310}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot t_1\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n \cdot 2} \cdot \sqrt{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 (* U (fma (/ l Om) (fma l -2.0 (* (- U* U) (* n (/ l Om)))) t))))
(if (<= n 2.23999759039676e-310)
(sqrt (* 2.0 (* n t_1)))
(* (sqrt (* n 2.0)) (sqrt 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 = U * fma((l / Om), fma(l, -2.0, ((U_42_ - U) * (n * (l / Om)))), t);
double tmp;
if (n <= 2.23999759039676e-310) {
tmp = sqrt(2.0 * (n * t_1));
} else {
tmp = sqrt(n * 2.0) * sqrt(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 n < 2.239997590396758e-310Initial program 34.1
Simplified30.0
Applied associate-*l*_binary6430.6
Applied associate-*l*_binary6430.6
Simplified30.6
if 2.239997590396758e-310 < n Initial program 34.5
Simplified30.6
Applied associate-*l*_binary6430.5
Applied sqrt-prod_binary6422.8
Simplified22.8
Simplified22.8
Final simplification26.7
herbie shell --seed 2022104
(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*))))))