\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 -3.443483628374146 \cdot 10^{-199} \lor \neg \left(t \leq 8.168012831157414 \cdot 10^{-142}\right):\\
\;\;\;\;\frac{2}{\left(\left(\left(t \cdot \frac{t}{\ell}\right) \cdot \left(\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right) \cdot \left(\sin k \cdot \frac{\sqrt[3]{t}}{\ell}\right)\right)\right) \cdot \tan k\right) \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\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 -3.443483628374146e-199) (not (<= t 8.168012831157414e-142)))
(/
2.0
(*
(*
(* (* t (/ t l)) (* (* (cbrt t) (cbrt t)) (* (sin k) (/ (cbrt t) l))))
(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 <= -3.443483628374146e-199) || !(t <= 8.168012831157414e-142)) {
tmp = 2.0 / ((((t * (t / l)) * ((cbrt(t) * cbrt(t)) * (sin(k) * (cbrt(t) / l)))) * 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 < -3.4434836283741459e-199 or 8.16801283115741363e-142 < t Initial program 27.3
Simplified27.3
rmApplied unpow3_binary6427.3
Applied times-frac_binary6419.1
Applied associate-*l*_binary6416.9
rmApplied *-un-lft-identity_binary6416.9
Applied times-frac_binary6412.0
Simplified12.0
rmApplied *-un-lft-identity_binary6412.0
Applied add-cube-cbrt_binary6412.2
Applied times-frac_binary6412.2
Applied associate-*l*_binary6413.1
Simplified13.1
if -3.4434836283741459e-199 < t < 8.16801283115741363e-142Initial program 64.0
Simplified64.0
Taylor expanded around inf 41.0
Simplified41.0
Final simplification17.2
herbie shell --seed 2020220
(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))))