\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 -2.8585639207837988 \cdot 10^{134}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{-\left(t \cdot \sqrt{2} + 2 \cdot \frac{t}{\sqrt{2} \cdot x}\right)}\\
\mathbf{elif}\;t \le -1.3093127471214333 \cdot 10^{-159}:\\
\;\;\;\;\frac{\sqrt{\sqrt{\sqrt{2}}} \cdot \left(\sqrt{\sqrt{\sqrt{2}}} \cdot \left(\sqrt{\sqrt{2}} \cdot t\right)\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{elif}\;t \le -1.00692316033768718 \cdot 10^{-226}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{-\left(t \cdot \sqrt{2} + 2 \cdot \frac{t}{\sqrt{2} \cdot x}\right)}\\
\mathbf{elif}\;t \le 8.64736697806752824 \cdot 10^{90}:\\
\;\;\;\;\frac{\sqrt{\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}} \cdot \left(\sqrt{\sqrt[3]{\sqrt{2}}} \cdot \left(\sqrt{\sqrt{2}} \cdot t\right)\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 temp;
if ((t <= -2.8585639207837988e+134)) {
temp = ((sqrt(2.0) * t) / -((t * sqrt(2.0)) + (2.0 * (t / (sqrt(2.0) * x)))));
} else {
double temp_1;
if ((t <= -1.3093127471214333e-159)) {
temp_1 = ((sqrt(sqrt(sqrt(2.0))) * (sqrt(sqrt(sqrt(2.0))) * (sqrt(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 {
double temp_2;
if ((t <= -1.0069231603376872e-226)) {
temp_2 = ((sqrt(2.0) * t) / -((t * sqrt(2.0)) + (2.0 * (t / (sqrt(2.0) * x)))));
} else {
double temp_3;
if ((t <= 8.647366978067528e+90)) {
temp_3 = ((sqrt((cbrt(sqrt(2.0)) * cbrt(sqrt(2.0)))) * (sqrt(cbrt(sqrt(2.0))) * (sqrt(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 {
temp_3 = ((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)))))));
}
temp_2 = temp_3;
}
temp_1 = temp_2;
}
temp = temp_1;
}
return temp;
}



Bits error versus x



Bits error versus l



Bits error versus t
Results
if t < -2.8585639207837988e+134 or -1.3093127471214333e-159 < t < -1.0069231603376872e-226Initial program 58.3
Taylor expanded around inf 53.2
Simplified53.2
Taylor expanded around -inf 8.7
if -2.8585639207837988e+134 < t < -1.3093127471214333e-159Initial program 25.2
Taylor expanded around inf 10.1
Simplified10.1
rmApplied *-un-lft-identity10.1
Applied add-sqr-sqrt10.1
Applied times-frac10.1
Simplified10.1
Simplified4.4
rmApplied add-sqr-sqrt4.4
Applied sqrt-prod4.6
Applied associate-*l*4.5
rmApplied add-sqr-sqrt4.5
Applied sqrt-prod4.5
Applied sqrt-prod4.5
Applied associate-*l*4.4
if -1.0069231603376872e-226 < t < 8.647366978067528e+90Initial program 41.4
Taylor expanded around inf 19.0
Simplified19.0
rmApplied *-un-lft-identity19.0
Applied add-sqr-sqrt19.0
Applied times-frac19.0
Simplified19.0
Simplified15.1
rmApplied add-sqr-sqrt15.1
Applied sqrt-prod15.2
Applied associate-*l*15.2
rmApplied add-cube-cbrt15.2
Applied sqrt-prod15.3
Applied associate-*l*15.1
if 8.647366978067528e+90 < t Initial program 49.2
Taylor expanded around inf 3.0
Simplified3.0
Final simplification8.7
herbie shell --seed 2020065 +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)))))