\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 -3.62855476399833709 \cdot 10^{123}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\left(2 \cdot \left(\frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}} - \frac{t}{\sqrt{2} \cdot {x}^{2}}\right) - \sqrt{2} \cdot t\right) - 2 \cdot \frac{t}{\sqrt{2} \cdot x}}\\
\mathbf{elif}\;t \le -3.36283277804347352 \cdot 10^{-154}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\sqrt{4 \cdot \frac{{t}^{2}}{x} + 2 \cdot \left({t}^{2} + \ell \cdot \frac{\ell}{x}\right)}}\\
\mathbf{elif}\;t \le -1.47281951232424519 \cdot 10^{-263}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\left(2 \cdot \left(\frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}} - \frac{t}{\sqrt{2} \cdot {x}^{2}}\right) - \sqrt{2} \cdot t\right) - 2 \cdot \frac{t}{\sqrt{2} \cdot x}}\\
\mathbf{elif}\;t \le 5.06085330291005782 \cdot 10^{141}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\sqrt{4 \cdot \frac{{t}^{2}}{x} + 2 \cdot \left({t}^{2} + \ell \cdot \frac{\ell}{x}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{2 \cdot \left(\frac{t}{\sqrt{2} \cdot {x}^{2}} + \frac{t}{\sqrt{2} \cdot x}\right) + \left(\sqrt{2} \cdot t - 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 <= -3.628554763998337e+123)) {
temp = ((sqrt(2.0) * t) / (((2.0 * ((t / (pow(sqrt(2.0), 3.0) * pow(x, 2.0))) - (t / (sqrt(2.0) * pow(x, 2.0))))) - (sqrt(2.0) * t)) - (2.0 * (t / (sqrt(2.0) * x)))));
} else {
double temp_1;
if ((t <= -3.3628327780434735e-154)) {
temp_1 = ((sqrt(2.0) * t) / sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + (l * (l / x)))))));
} else {
double temp_2;
if ((t <= -1.4728195123242452e-263)) {
temp_2 = ((sqrt(2.0) * t) / (((2.0 * ((t / (pow(sqrt(2.0), 3.0) * pow(x, 2.0))) - (t / (sqrt(2.0) * pow(x, 2.0))))) - (sqrt(2.0) * t)) - (2.0 * (t / (sqrt(2.0) * x)))));
} else {
double temp_3;
if ((t <= 5.060853302910058e+141)) {
temp_3 = ((sqrt(2.0) * t) / sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + (l * (l / x)))))));
} else {
temp_3 = ((sqrt(2.0) * t) / ((2.0 * ((t / (sqrt(2.0) * pow(x, 2.0))) + (t / (sqrt(2.0) * x)))) + ((sqrt(2.0) * t) - (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 < -3.628554763998337e+123 or -3.3628327780434735e-154 < t < -1.4728195123242452e-263Initial program 57.0
Taylor expanded around -inf 10.5
Simplified10.5
if -3.628554763998337e+123 < t < -3.3628327780434735e-154 or -1.4728195123242452e-263 < t < 5.060853302910058e+141Initial program 33.3
Taylor expanded around inf 15.6
Simplified15.6
rmApplied *-un-lft-identity15.6
Applied add-sqr-sqrt39.9
Applied unpow-prod-down39.9
Applied times-frac37.7
Simplified37.7
Simplified10.7
if 5.060853302910058e+141 < t Initial program 59.1
Taylor expanded around inf 2.0
Simplified2.0
Final simplification9.3
herbie shell --seed 2020066
(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)))))