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



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -198860.82714289907 or 2.31568564707157445e-81 < t Initial program 22.9
Applied cube-mult_binary6422.9
Applied times-frac_binary6416.6
Applied associate-*l*_binary6414.4
Applied *-un-lft-identity_binary6414.4
Applied times-frac_binary648.9
Applied associate-*l*_binary647.4
Applied *-un-lft-identity_binary647.4
Applied times-frac_binary647.4
Simplified4.3
Simplified4.3
Applied *-un-lft-identity_binary644.3
Applied times-frac_binary643.6
Applied associate-*l*_binary642.8
Simplified2.8
if -198860.82714289907 < t < 2.31568564707157445e-81Initial program 53.4
Applied cube-mult_binary6453.4
Applied times-frac_binary6445.0
Applied associate-*l*_binary6444.1
Taylor expanded in t around 0 36.1
Simplified25.5
Final simplification10.0
herbie shell --seed 2021329
(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))))