\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.7727220291282027 \cdot 10^{-60} \lor \neg \left(t \leq 2.155382607882725 \cdot 10^{-31}\right):\\
\;\;\;\;\frac{2}{\left(\frac{t}{\ell} \cdot \left(\left(t \cdot \left(\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\sin k}\right) \cdot \left(\frac{t}{\ell} \cdot \sqrt[3]{\sin k}\right)\right)\right) \cdot \tan k\right)\right) \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\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 -1.7727220291282027e-60) (not (<= t 2.155382607882725e-31)))
(/
2.0
(*
(*
(/ t l)
(*
(* t (* (* (cbrt (sin k)) (cbrt (sin k))) (* (/ t l) (cbrt (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 <= -1.7727220291282027e-60) || !(t <= 2.155382607882725e-31)) {
tmp = 2.0 / (((t / l) * ((t * ((cbrt(sin(k)) * cbrt(sin(k))) * ((t / l) * cbrt(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 < -1.77271e-60 or 2.15536e-31 < t Initial program 22.7
Simplified22.7
rmApplied cube-mult_binary64_54922.7
Applied times-frac_binary64_56915.9
Applied associate-*l*_binary64_63413.6
Simplified8.4
rmApplied associate-*r*_binary64_6336.9
rmApplied associate-*l*_binary64_6344.8
Simplified4.8
rmApplied add-cube-cbrt_binary64_5455.1
Applied associate-*l*_binary64_6345.1
Simplified5.1
if -1.77271e-60 < t < 2.15536e-31Initial program 54.8
Simplified54.8
Taylor expanded around inf 37.4
Simplified26.2
Final simplification11.7
herbie shell --seed 2020231
(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))))