\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 -2.882279254698786 \cdot 10^{-232} \lor \neg \left(t \leq 1.4895900323393487 \cdot 10^{-174}\right):\\
\;\;\;\;\frac{2}{\frac{t}{\ell} \cdot \left(\left(\left(\frac{t}{\ell} \cdot \left(t \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(t \cdot {\sin k}^{2}\right)}{\left(\ell \cdot \ell\right) \cdot \cos k} + 2 \cdot \frac{{\sin k}^{2} \cdot {t}^{3}}{\left(\ell \cdot \ell\right) \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 -2.882279254698786e-232) (not (<= t 1.4895900323393487e-174)))
(/
2.0
(*
(/ t l)
(* (* (* (/ t l) (* t (sin k))) (tan k)) (+ 2.0 (pow (/ k t) 2.0)))))
(/
2.0
(+
(/ (* (* k k) (* t (pow (sin k) 2.0))) (* (* l l) (cos k)))
(* 2.0 (/ (* (pow (sin k) 2.0) (pow t 3.0)) (* (* l l) (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 <= -2.882279254698786e-232) || !(t <= 1.4895900323393487e-174)) {
tmp = 2.0 / ((t / l) * ((((t / l) * (t * sin(k))) * tan(k)) * (2.0 + pow((k / t), 2.0))));
} else {
tmp = 2.0 / ((((k * k) * (t * pow(sin(k), 2.0))) / ((l * l) * cos(k))) + (2.0 * ((pow(sin(k), 2.0) * pow(t, 3.0)) / ((l * l) * cos(k)))));
}
return tmp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -2.8822792546987859e-232 or 1.48959003233934872e-174 < t Initial program 28.9
Simplified28.9
rmApplied cube-mult_binary6428.9
Applied times-frac_binary6420.6
Applied associate-*l*_binary6418.5
Simplified18.5
rmApplied *-un-lft-identity_binary6418.5
Applied times-frac_binary6413.2
Applied associate-*r*_binary6412.4
Simplified12.4
rmApplied associate-*l*_binary6411.1
Simplified11.1
rmApplied associate-*l*_binary649.7
if -2.8822792546987859e-232 < t < 1.48959003233934872e-174Initial program 64.0
Simplified64.0
Taylor expanded around inf 42.2
Simplified42.2
Final simplification13.3
herbie shell --seed 2020231
(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))))