\frac{\sqrt{2} \cdot t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}\begin{array}{l}
\mathbf{if}\;t \le -1.61365754425838573 \cdot 10^{50}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\mathsf{fma}\left(2, \frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}}, -\mathsf{fma}\left(2, \frac{t}{\sqrt{2} \cdot x}, t \cdot \sqrt{2}\right)\right)}\\
\mathbf{elif}\;t \le 7.07920113956271288 \cdot 10^{25}:\\
\;\;\;\;\frac{\sqrt{1} \cdot \left(\sqrt{2} \cdot t\right)}{\sqrt{\mathsf{fma}\left(2, {t}^{2}, \mathsf{fma}\left(2, \left|\ell\right| \cdot \frac{\left|\ell\right|}{x}, 4 \cdot \frac{{t}^{2}}{x}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\mathsf{fma}\left(2, \frac{t}{\sqrt{2} \cdot {x}^{2}}, \mathsf{fma}\left(2, \frac{t}{\sqrt{2} \cdot x}, t \cdot \sqrt{2}\right) - 2 \cdot \frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}}\right)}\\
\end{array}double code(double x, double l, double t) {
return ((sqrt(2.0) * t) / sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l))));
}
double code(double x, double l, double t) {
double VAR;
if ((t <= -1.6136575442583857e+50)) {
VAR = ((sqrt(2.0) * t) / fma(2.0, (t / (pow(sqrt(2.0), 3.0) * pow(x, 2.0))), -fma(2.0, (t / (sqrt(2.0) * x)), (t * sqrt(2.0)))));
} else {
double VAR_1;
if ((t <= 7.079201139562713e+25)) {
VAR_1 = ((sqrt(1.0) * (sqrt(2.0) * t)) / sqrt(fma(2.0, pow(t, 2.0), fma(2.0, (fabs(l) * (fabs(l) / x)), (4.0 * (pow(t, 2.0) / x))))));
} else {
VAR_1 = ((sqrt(2.0) * t) / fma(2.0, (t / (sqrt(2.0) * pow(x, 2.0))), (fma(2.0, (t / (sqrt(2.0) * x)), (t * sqrt(2.0))) - (2.0 * (t / (pow(sqrt(2.0), 3.0) * pow(x, 2.0)))))));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x



Bits error versus l



Bits error versus t
Results
if t < -1.6136575442583857e+50Initial program 45.0
Taylor expanded around inf 43.6
Simplified43.6
rmApplied *-un-lft-identity43.6
Applied add-sqr-sqrt43.6
Applied times-frac43.6
Simplified43.6
Simplified41.1
Taylor expanded around -inf 3.7
Simplified3.7
if -1.6136575442583857e+50 < t < 7.079201139562713e+25Initial program 42.3
Taylor expanded around inf 18.9
Simplified18.9
rmApplied *-un-lft-identity18.9
Applied add-sqr-sqrt18.9
Applied times-frac18.9
Simplified18.9
Simplified15.0
rmApplied *-un-lft-identity15.0
Applied sqrt-prod15.0
Applied associate-*l*15.0
if 7.079201139562713e+25 < t Initial program 43.1
Taylor expanded around inf 4.7
Simplified4.7
Final simplification9.5
herbie shell --seed 2020075 +o rules:numerics
(FPCore (x l t)
:name "Toniolo and Linder, Equation (7)"
:precision binary64
(/ (* (sqrt 2) t) (sqrt (- (* (/ (+ x 1) (- x 1)) (+ (* l l) (* 2 (* t t)))) (* l l)))))