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



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -5.881377566610367e-84 or 3.8714402805084825e-94 < t Initial program 20.8
Simplified20.8
Applied cube-mult_binary6420.8
Applied times-frac_binary6414.5
Applied associate-*l*_binary6412.6
Applied *-un-lft-identity_binary6412.6
Applied times-frac_binary647.7
Applied associate-*l*_binary646.6
Applied pow1_binary646.6
Applied pow1_binary646.6
Applied pow-prod-down_binary646.6
Applied pow1_binary646.6
Applied pow-prod-down_binary646.6
Simplified6.7
Applied associate-*l*_binary646.6
if -5.881377566610367e-84 < t < 3.8714402805084825e-94Initial program 42.9
Simplified42.9
Taylor expanded in t around 0 17.9
Final simplification10.7
herbie shell --seed 2022068
(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))))