\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 \leq -2.5410633816086304 \cdot 10^{+153}:\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{\frac{t}{\sqrt{2} \cdot \left(x \cdot x\right)} - \left(t \cdot \sqrt{2} + \frac{2}{\sqrt{2}} \cdot \left(\frac{t}{x \cdot x} + \frac{t}{x}\right)\right)}\\
\mathbf{elif}\;t \leq -1.3645280228316457 \cdot 10^{-220}:\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{4 \cdot \frac{t \cdot t}{x} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}\\
\mathbf{elif}\;t \leq -5.993496914647807 \cdot 10^{-255}:\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{\frac{t}{\sqrt{2} \cdot \left(x \cdot x\right)} - \left(t \cdot \sqrt{2} + \frac{2}{\sqrt{2}} \cdot \left(\frac{t}{x \cdot x} + \frac{t}{x}\right)\right)}\\
\mathbf{elif}\;t \leq 8.817897027101529 \cdot 10^{-265}:\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{4 \cdot \frac{t \cdot t}{x} + 2 \cdot \left(t \cdot t + \frac{\ell}{\sqrt{x}} \cdot \frac{\ell}{\sqrt{x}}\right)}}\\
\mathbf{elif}\;t \leq 8.153802402658137 \cdot 10^{-191} \lor \neg \left(t \leq 1.0881803445765273 \cdot 10^{+50}\right):\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{\frac{2}{\sqrt{2}} \cdot \left(\frac{t}{x \cdot x} + \frac{t}{x}\right) + \left(t \cdot \sqrt{2} - \frac{t}{\sqrt{2} \cdot \left(x \cdot x\right)}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{4 \cdot \frac{t \cdot t}{x} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}\\
\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
(if (<= t -2.5410633816086304e+153)
(/
(* t (sqrt 2.0))
(-
(/ t (* (sqrt 2.0) (* x x)))
(+ (* t (sqrt 2.0)) (* (/ 2.0 (sqrt 2.0)) (+ (/ t (* x x)) (/ t x))))))
(if (<= t -1.3645280228316457e-220)
(/
(* t (sqrt 2.0))
(sqrt (+ (* 4.0 (/ (* t t) x)) (* 2.0 (+ (* t t) (/ l (/ x l)))))))
(if (<= t -5.993496914647807e-255)
(/
(* t (sqrt 2.0))
(-
(/ t (* (sqrt 2.0) (* x x)))
(+
(* t (sqrt 2.0))
(* (/ 2.0 (sqrt 2.0)) (+ (/ t (* x x)) (/ t x))))))
(if (<= t 8.817897027101529e-265)
(/
(* t (sqrt 2.0))
(sqrt
(+
(* 4.0 (/ (* t t) x))
(* 2.0 (+ (* t t) (* (/ l (sqrt x)) (/ l (sqrt x))))))))
(if (or (<= t 8.153802402658137e-191)
(not (<= t 1.0881803445765273e+50)))
(/
(* t (sqrt 2.0))
(+
(* (/ 2.0 (sqrt 2.0)) (+ (/ t (* x x)) (/ t x)))
(- (* t (sqrt 2.0)) (/ t (* (sqrt 2.0) (* x x))))))
(/
(* t (sqrt 2.0))
(sqrt
(+
(* 4.0 (/ (* t t) x))
(* 2.0 (+ (* t t) (/ l (/ x l)))))))))))))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 tmp;
if (t <= -2.5410633816086304e+153) {
tmp = (t * sqrt(2.0)) / ((t / (sqrt(2.0) * (x * x))) - ((t * sqrt(2.0)) + ((2.0 / sqrt(2.0)) * ((t / (x * x)) + (t / x)))));
} else if (t <= -1.3645280228316457e-220) {
tmp = (t * sqrt(2.0)) / sqrt((4.0 * ((t * t) / x)) + (2.0 * ((t * t) + (l / (x / l)))));
} else if (t <= -5.993496914647807e-255) {
tmp = (t * sqrt(2.0)) / ((t / (sqrt(2.0) * (x * x))) - ((t * sqrt(2.0)) + ((2.0 / sqrt(2.0)) * ((t / (x * x)) + (t / x)))));
} else if (t <= 8.817897027101529e-265) {
tmp = (t * sqrt(2.0)) / sqrt((4.0 * ((t * t) / x)) + (2.0 * ((t * t) + ((l / sqrt(x)) * (l / sqrt(x))))));
} else if ((t <= 8.153802402658137e-191) || !(t <= 1.0881803445765273e+50)) {
tmp = (t * sqrt(2.0)) / (((2.0 / sqrt(2.0)) * ((t / (x * x)) + (t / x))) + ((t * sqrt(2.0)) - (t / (sqrt(2.0) * (x * x)))));
} else {
tmp = (t * sqrt(2.0)) / sqrt((4.0 * ((t * t) / x)) + (2.0 * ((t * t) + (l / (x / l)))));
}
return tmp;
}



Bits error versus x



Bits error versus l



Bits error versus t
Results
if t < -2.5410633816086304e153 or -1.36452802283164568e-220 < t < -5.99349691464780707e-255Initial program 62.5
Taylor expanded around -inf 6.1
Simplified6.1
if -2.5410633816086304e153 < t < -1.36452802283164568e-220 or 8.153802402658137e-191 < t < 1.0881803445765273e50Initial program 30.6
Taylor expanded around inf 13.9
Simplified13.9
rmApplied associate-/l*_binary648.8
if -5.99349691464780707e-255 < t < 8.8178970271015288e-265Initial program 63.4
Taylor expanded around inf 30.7
Simplified30.7
rmApplied add-sqr-sqrt_binary6430.7
Applied times-frac_binary6430.3
if 8.8178970271015288e-265 < t < 8.153802402658137e-191 or 1.0881803445765273e50 < t Initial program 48.2
Taylor expanded around inf 9.3
Simplified9.3
Final simplification9.8
herbie shell --seed 2020260
(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)))))