\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}
t_1 := \sqrt{2} \cdot t\\
t_2 := \ell \cdot \sqrt{\frac{2}{x} + \frac{2}{x \cdot x}}\\
\mathbf{if}\;\ell \leq -1.344174783853972 \cdot 10^{+154}:\\
\;\;\;\;\frac{t_1}{-t_2}\\
\mathbf{elif}\;\ell \leq -7.737943713271532 \cdot 10^{+63}:\\
\;\;\;\;\frac{t_1}{\sqrt{2 \cdot \left(\left(t \cdot t + \frac{\ell \cdot \ell}{x}\right) + \frac{\ell \cdot \ell}{x \cdot x}\right) + 4 \cdot \left(\frac{t \cdot t}{x \cdot x} + t \cdot \frac{t}{x}\right)}}\\
\mathbf{elif}\;\ell \leq 9.258573850466912 \cdot 10^{+180}:\\
\;\;\;\;\frac{t_1}{\left|t_1\right|}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_2}\\
\end{array}
(FPCore (x l t) :precision binary64 (/ (* (sqrt 2.0) t) (sqrt (- (* (/ (+ x 1.0) (- x 1.0)) (+ (* l l) (* 2.0 (* t t)))) (* l l)))))
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* (sqrt 2.0) t))
(t_2 (* l (sqrt (+ (/ 2.0 x) (/ 2.0 (* x x)))))))
(if (<= l -1.344174783853972e+154)
(/ t_1 (- t_2))
(if (<= l -7.737943713271532e+63)
(/
t_1
(sqrt
(+
(* 2.0 (+ (+ (* t t) (/ (* l l) x)) (/ (* l l) (* x x))))
(* 4.0 (+ (/ (* t t) (* x x)) (* t (/ t x)))))))
(if (<= l 9.258573850466912e+180) (/ t_1 (fabs t_1)) (/ t_1 t_2))))))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 t_1 = sqrt(2.0) * t;
double t_2 = l * sqrt((2.0 / x) + (2.0 / (x * x)));
double tmp;
if (l <= -1.344174783853972e+154) {
tmp = t_1 / -t_2;
} else if (l <= -7.737943713271532e+63) {
tmp = t_1 / sqrt((2.0 * (((t * t) + ((l * l) / x)) + ((l * l) / (x * x)))) + (4.0 * (((t * t) / (x * x)) + (t * (t / x)))));
} else if (l <= 9.258573850466912e+180) {
tmp = t_1 / fabs(t_1);
} else {
tmp = t_1 / t_2;
}
return tmp;
}



Bits error versus x



Bits error versus l



Bits error versus t
Results
if l < -1.34417478385397196e154Initial program 64.0
Taylor expanded in x around inf 56.1
Simplified56.1
Taylor expanded in l around -inf 25.8
Simplified25.8
if -1.34417478385397196e154 < l < -7.737943713271532e63Initial program 53.8
Taylor expanded in x around inf 22.8
Simplified22.8
rmApplied *-un-lft-identity_binary6422.8
Applied times-frac_binary6422.8
Simplified22.8
if -7.737943713271532e63 < l < 9.2585738504669123e180Initial program 36.5
Taylor expanded in x around inf 33.2
Simplified9.4
if 9.2585738504669123e180 < l Initial program 64.0
Taylor expanded in x around inf 55.8
Simplified55.8
Taylor expanded in l around inf 21.5
Simplified21.5
Final simplification12.8
herbie shell --seed 2021206
(FPCore (x l t)
:name "Toniolo and Linder, Equation (7)"
:precision binary64
(/ (* (sqrt 2.0) t) (sqrt (- (* (/ (+ x 1.0) (- x 1.0)) (+ (* l l) (* 2.0 (* t t)))) (* l l)))))