\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 -7.343627832944429 \cdot 10^{-69} \lor \neg \left(t \leq 5.874565259588635 \cdot 10^{-69}\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{{\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 -7.343627832944429e-69) (not (<= t 5.874565259588635e-69)))
(/
2.0
(*
(/ t l)
(* (* (* (/ t l) (* t (sin k))) (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 <= -7.343627832944429e-69) || !(t <= 5.874565259588635e-69)) {
tmp = 2.0 / ((t / l) * ((((t / l) * (t * sin(k))) * 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 < -7.34362783294442938e-69 or 5.87456525958863495e-69 < t Initial program 22.7
Simplified22.7
rmApplied cube-mult_binary6422.7
Applied times-frac_binary6416.7
Applied associate-*l*_binary6414.5
Simplified14.5
rmApplied *-un-lft-identity_binary6414.5
Applied times-frac_binary649.1
Applied associate-*r*_binary648.0
Simplified8.0
rmApplied associate-*l*_binary645.3
Simplified5.3
rmApplied associate-*l*_binary644.6
if -7.34362783294442938e-69 < t < 5.87456525958863495e-69Initial program 58.3
Simplified58.3
rmApplied cube-mult_binary6458.3
Applied times-frac_binary6449.0
Applied associate-*l*_binary6448.7
Simplified48.7
Taylor expanded around 0 38.9
Simplified26.4
Final simplification10.4
herbie shell --seed 2021168
(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))))