\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.8181142338537513 \cdot 10^{-243} \lor \neg \left(t \leq 1.31908122002027 \cdot 10^{-232}\right):\\
\;\;\;\;\frac{1}{t \cdot \left(\frac{t}{\ell} \cdot \sin k\right)} \cdot \left(\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \frac{\frac{\ell}{t}}{\tan k}\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 -1.8181142338537513e-243) (not (<= t 1.31908122002027e-232)))
(*
(/ 1.0 (* t (* (/ t l) (sin k))))
(* (/ 2.0 (+ 2.0 (pow (/ k t) 2.0))) (/ (/ l t) (tan k))))
(/
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 <= -1.8181142338537513e-243) || !(t <= 1.31908122002027e-232)) {
tmp = (1.0 / (t * ((t / l) * sin(k)))) * ((2.0 / (2.0 + pow((k / t), 2.0))) * ((l / t) / tan(k)));
} 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 < -1.8181142338537513e-243 or 1.31908122002027e-232 < t Initial program 29.6
Simplified29.6
rmApplied cube-mult_binary6429.6
Applied times-frac_binary6421.8
Applied associate-*l*_binary6420.1
rmApplied *-un-lft-identity_binary6420.1
Applied times-frac_binary6414.5
Applied associate-*l*_binary6413.7
rmApplied *-un-lft-identity_binary6413.7
Applied times-frac_binary6413.8
Simplified12.2
rmApplied *-un-lft-identity_binary6412.2
Applied times-frac_binary6411.2
Applied associate-*l*_binary649.5
Simplified9.5
if -1.8181142338537513e-243 < t < 1.31908122002027e-232Initial program 64.0
Simplified64.0
Taylor expanded around inf 44.2
Simplified44.2
Final simplification12.1
herbie shell --seed 2020224
(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))))