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



Bits error versus t



Bits error versus l



Bits error versus k
Results
if l < -1.04675744671372571e152 or 8.42039537048034128e142 < l Initial program 63.0
Simplified62.7
Applied cube-mult_binary6462.7
Applied times-frac_binary6448.7
Applied associate-*l*_binary6448.7
if -1.04675744671372571e152 < l < 8.42039537048034128e142Initial program 44.7
Simplified35.3
Taylor expanded in t around 0 15.4
Applied unpow2_binary6415.4
Applied associate-*l*_binary6413.0
Applied associate-/l*_binary6410.5
Applied associate-/r*_binary6410.0
Simplified10.0
Final simplification16.0
herbie shell --seed 2021215
(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))))