\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}\begin{array}{l}
\mathbf{if}\;t \leq -1.6810985444739314 \cdot 10^{-15} \lor \neg \left(t \leq 5661311553777.913\right):\\
\;\;\;\;\frac{2}{\frac{\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \left(\sin k \cdot \left(t \cdot \frac{t \cdot \sin k}{\ell}\right)\right)}{\frac{\ell}{t} \cdot \cos k}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{2 \cdot \left(t \cdot \left({\sin k}^{2} \cdot \frac{t}{\ell}\right)\right) + \frac{{\sin k}^{2} \cdot \left(k \cdot k\right)}{\ell}}{\frac{\ell}{t} \cdot \cos k}}\\
\end{array}(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
(FPCore (t l k)
:precision binary64
(if (or (<= t -1.6810985444739314e-15) (not (<= t 5661311553777.913)))
(/
2.0
(/
(* (+ 2.0 (pow (/ k t) 2.0)) (* (sin k) (* t (/ (* t (sin k)) l))))
(* (/ l t) (cos k))))
(/
2.0
(/
(+
(* 2.0 (* t (* (pow (sin k) 2.0) (/ t l))))
(/ (* (pow (sin k) 2.0) (* k k)) l))
(* (/ l t) (cos k))))))double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
double code(double t, double l, double k) {
double tmp;
if ((t <= -1.6810985444739314e-15) || !(t <= 5661311553777.913)) {
tmp = 2.0 / (((2.0 + pow((k / t), 2.0)) * (sin(k) * (t * ((t * sin(k)) / l)))) / ((l / t) * cos(k)));
} else {
tmp = 2.0 / (((2.0 * (t * (pow(sin(k), 2.0) * (t / l)))) + ((pow(sin(k), 2.0) * (k * k)) / l)) / ((l / t) * cos(k)));
}
return tmp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -1.6810985444739314e-15 or 5661311553777.91309 < t Initial program 22.6
Simplified22.6
rmApplied unpow3_binary6422.6
Applied times-frac_binary6416.0
Applied associate-*l*_binary6413.8
rmApplied associate-/l*_binary647.8
rmApplied tan-quot_binary647.8
Applied associate-*l/_binary646.3
Applied frac-times_binary643.3
Applied associate-*l/_binary643.0
Simplified3.0
rmApplied associate-*l/_binary642.9
if -1.6810985444739314e-15 < t < 5661311553777.91309Initial program 49.4
Simplified49.4
rmApplied unpow3_binary6449.4
Applied times-frac_binary6441.5
Applied associate-*l*_binary6440.2
rmApplied associate-/l*_binary6434.1
rmApplied tan-quot_binary6434.1
Applied associate-*l/_binary6434.2
Applied frac-times_binary6435.7
Applied associate-*l/_binary6432.3
Simplified32.3
Taylor expanded around inf 21.8
Simplified20.3
Final simplification9.4
herbie shell --seed 2020260
(FPCore (t l k)
:name "Toniolo and Linder, Equation (10+)"
:precision binary64
(/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))