\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.5746361320052905 \cdot 10^{118}:\\
\;\;\;\;\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 -1.492381997315763 \cdot 10^{-189}:\\
\;\;\;\;\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.617668931297377 \cdot 10^{-304}:\\
\;\;\;\;\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 1.8906625567539152 \cdot 10^{-293}:\\
\;\;\;\;\frac{\sqrt{2} \cdot t}{\sqrt{4 \cdot \frac{{t}^{2}}{x} + 2 \cdot \left({t}^{2} + \frac{\ell}{\sqrt[3]{x} \cdot \sqrt[3]{x}} \cdot \frac{\ell}{\sqrt[3]{x}}\right)}}\\
\mathbf{elif}\;t \le 3.17959315105451228 \cdot 10^{-188}:\\
\;\;\;\;\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)}\\
\mathbf{elif}\;t \le 8.28827763547493966 \cdot 10^{114}:\\
\;\;\;\;\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 VAR;
if ((t <= -1.5746361320052905e+118)) {
VAR = ((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 VAR_1;
if ((t <= -1.492381997315763e-189)) {
VAR_1 = ((sqrt(2.0) * t) / sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + (l * (l / x)))))));
} else {
double VAR_2;
if ((t <= 1.617668931297377e-304)) {
VAR_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 VAR_3;
if ((t <= 1.8906625567539152e-293)) {
VAR_3 = ((sqrt(2.0) * t) / sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + ((l / (cbrt(x) * cbrt(x))) * (l / cbrt(x))))))));
} else {
double VAR_4;
if ((t <= 3.179593151054512e-188)) {
VAR_4 = ((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)))))));
} else {
double VAR_5;
if ((t <= 8.28827763547494e+114)) {
VAR_5 = ((sqrt(2.0) * t) / sqrt(((4.0 * (pow(t, 2.0) / x)) + (2.0 * (pow(t, 2.0) + (l * (l / x)))))));
} else {
VAR_5 = ((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)))))));
}
VAR_4 = VAR_5;
}
VAR_3 = VAR_4;
}
VAR_2 = VAR_3;
}
VAR_1 = VAR_2;
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x



Bits error versus l



Bits error versus t
Results
if t < -1.5746361320052905e+118 or -1.492381997315763e-189 < t < 1.617668931297377e-304Initial program 56.5
Taylor expanded around -inf 13.1
Simplified13.1
if -1.5746361320052905e+118 < t < -1.492381997315763e-189 or 3.179593151054512e-188 < t < 8.28827763547494e+114Initial program 28.6
Taylor expanded around inf 12.2
Simplified12.2
rmApplied *-un-lft-identity12.2
Applied add-sqr-sqrt37.7
Applied unpow-prod-down37.7
Applied times-frac35.2
Simplified35.2
Simplified7.1
if 1.617668931297377e-304 < t < 1.8906625567539152e-293Initial program 62.0
Taylor expanded around inf 24.2
Simplified24.2
rmApplied add-cube-cbrt24.3
Applied add-sqr-sqrt44.4
Applied unpow-prod-down44.4
Applied times-frac43.7
Simplified43.8
Simplified23.7
if 1.8906625567539152e-293 < t < 3.179593151054512e-188 or 8.28827763547494e+114 < t Initial program 56.1
Taylor expanded around inf 11.5
Simplified11.5
Final simplification9.8
herbie shell --seed 2020102
(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)))))