\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.2680491459631155 \cdot 10^{-17} \lor \neg \left(t \leq 9.984633542218682 \cdot 10^{-64}\right):\\
\;\;\;\;\frac{2}{\left(\left(t \cdot \frac{t \cdot \sin k}{\ell}\right) \cdot \left(\frac{t}{\ell} \cdot \tan k\right)\right) \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\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 -2.2680491459631155e-17) (not (<= t 9.984633542218682e-64)))
(/
2.0
(*
(* (* t (/ (* t (sin k)) l)) (* (/ t l) (tan k)))
(+ 2.0 (pow (/ k t) 2.0))))
(/
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 <= -2.2680491459631155e-17) || !(t <= 9.984633542218682e-64)) {
tmp = 2.0 / (((t * ((t * sin(k)) / l)) * ((t / l) * tan(k))) * (2.0 + pow((k / t), 2.0)));
} 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 < -2.2680491459631155e-17 or 9.9846335422186817e-64 < t Initial program 22.2
Simplified22.2
rmApplied unpow3_binary64_48522.2
Applied times-frac_binary64_42515.6
Applied associate-*l*_binary64_36013.5
Simplified13.5
rmApplied *-un-lft-identity_binary64_41913.5
Applied times-frac_binary64_4257.9
Simplified7.9
rmApplied associate-*r*_binary64_3597.9
Simplified6.7
rmApplied associate-*l*_binary64_3603.4
if -2.2680491459631155e-17 < t < 9.9846335422186817e-64Initial program 53.4
Simplified53.4
rmApplied unpow3_binary64_48553.4
Applied times-frac_binary64_42545.2
Applied associate-*l*_binary64_36044.2
Simplified44.2
Taylor expanded around 0 35.5
Simplified24.5
Final simplification10.3
herbie shell --seed 2021019
(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))))