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



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -5.18282386089514887e-111 or 1.3348774375220249e-94 < t Initial program 23.5
Simplified23.5
rmApplied unpow3_binary64_47723.5
Applied times-frac_binary64_42017.1
Applied associate-*l*_binary64_35714.7
rmApplied associate-/l*_binary64_36110.0
rmApplied associate-*l/_binary64_3598.8
Applied associate-*l/_binary64_3597.1
Applied associate-*l/_binary64_3596.0
Simplified6.0
rmApplied clear-num_binary64_4136.0
if -5.18282386089514887e-111 < t < 1.3348774375220249e-94Initial program 62.5
Simplified62.5
rmApplied unpow3_binary64_47762.5
Applied times-frac_binary64_42053.6
Applied associate-*l*_binary64_35753.6
rmApplied associate-/l*_binary64_36144.9
rmApplied associate-*l/_binary64_35944.9
Applied associate-*l/_binary64_35946.0
Applied associate-*l/_binary64_35942.3
Simplified42.3
Taylor expanded around inf 24.0
Simplified21.0
Final simplification9.5
herbie shell --seed 2020292
(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))))