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



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -1.12664046976924508e-125 or 1.0518936381387416e-108 < t Initial program 23.8
Simplified23.8
Applied cube-mult_binary6423.8
Applied times-frac_binary6417.4
Applied associate-*l*_binary6415.2
Applied *-un-lft-identity_binary6415.2
Applied times-frac_binary6410.5
Applied associate-*l*_binary649.4
Applied associate-*l*_binary647.3
Simplified7.3
Applied associate-*l*_binary646.3
if -1.12664046976924508e-125 < t < 1.0518936381387416e-108Initial program 64.0
Simplified64.0
Applied cube-mult_binary6464.0
Applied times-frac_binary6455.9
Applied associate-*l*_binary6455.9
Applied *-un-lft-identity_binary6455.9
Applied times-frac_binary6445.9
Applied associate-*l*_binary6445.9
Taylor expanded in t around 0 26.9
Final simplification10.8
herbie shell --seed 2022055
(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))))