\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 -30300791297250332:\\
\;\;\;\;\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.511170609100405 \cdot 10^{-151}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\sqrt{\sqrt{4 \cdot \frac{{t}^{2}}{x} + 2 \cdot \left({t}^{2} + \ell \cdot \frac{\ell}{x}\right)}} \cdot \sqrt{\sqrt{4 \cdot \frac{{t}^{2}}{x} + 2 \cdot \left({t}^{2} + \ell \cdot \frac{\ell}{x}\right)}}}\\
\mathbf{elif}\;t \le -1.21751320251488658 \cdot 10^{-295}:\\
\;\;\;\;\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.27940796217429109 \cdot 10^{-264}:\\
\;\;\;\;\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 2.2209729288484951 \cdot 10^{-162}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + t \cdot \sqrt{2}\right) - 2 \cdot \frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}}}\\
\mathbf{elif}\;t \le 1.73405392707011745 \cdot 10^{57}:\\
\;\;\;\;\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}{\left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + t \cdot \sqrt{2}\right) - 2 \cdot \frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}}}\\
\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 <= -30300791297250332.0)) {
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 <= -5.511170609100405e-151)) {
temp_1 = ((sqrt(2.0) * t) / (sqrt(sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + (l * (l / x))))))) * sqrt(sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + (l * (l / x)))))))));
} else {
double temp_2;
if ((t <= -1.2175132025148866e-295)) {
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 <= 3.279407962174291e-264)) {
temp_3 = ((sqrt(2.0) * t) / sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + (l * (l / x)))))));
} else {
double temp_4;
if ((t <= 2.220972928848495e-162)) {
temp_4 = ((sqrt(2.0) * t) / (((2.0 * (t / (sqrt(2.0) * x))) + (t * sqrt(2.0))) - (2.0 * (t / (pow(sqrt(2.0), 3.0) * pow(x, 2.0))))));
} else {
double temp_5;
if ((t <= 1.7340539270701175e+57)) {
temp_5 = ((sqrt(2.0) * t) / sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + (l * (l / x)))))));
} else {
temp_5 = ((sqrt(2.0) * t) / (((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_4 = temp_5;
}
temp_3 = temp_4;
}
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 < -30300791297250332.0 or -5.511170609100405e-151 < t < -1.2175132025148866e-295Initial program 46.1
Taylor expanded around -inf 12.5
Simplified12.5
if -30300791297250332.0 < t < -5.511170609100405e-151Initial program 28.6
Taylor expanded around inf 9.0
Simplified9.0
rmApplied *-un-lft-identity9.0
Applied add-sqr-sqrt36.2
Applied unpow-prod-down36.2
Applied times-frac34.2
Simplified34.1
Simplified5.0
rmApplied add-sqr-sqrt5.0
Applied sqrt-prod5.2
if -1.2175132025148866e-295 < t < 3.279407962174291e-264 or 2.220972928848495e-162 < t < 1.7340539270701175e+57Initial program 35.9
Taylor expanded around inf 13.4
Simplified13.4
rmApplied *-un-lft-identity13.4
Applied add-sqr-sqrt36.9
Applied unpow-prod-down36.9
Applied times-frac35.2
Simplified35.2
Simplified9.1
if 3.279407962174291e-264 < t < 2.220972928848495e-162 or 1.7340539270701175e+57 < t Initial program 49.3
Taylor expanded around inf 42.8
Simplified42.8
Taylor expanded around inf 10.3
Final simplification10.2
herbie shell --seed 2020060
(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)))))