\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}
t_1 := \frac{2}{{\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\tan k}\right)\right)}^{3} \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)}\\
\mathbf{if}\;t \leq -5.1236186620617494 \cdot 10^{-11}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.095104110294208 \cdot 10^{-81}:\\
\;\;\;\;\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)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\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
(let* ((t_1
(/
2.0
(*
(pow
(* (/ t (pow (cbrt l) 2.0)) (* (cbrt (sin k)) (cbrt (tan k))))
3.0)
(+ 2.0 (pow (/ k t) 2.0))))))
(if (<= t -5.1236186620617494e-11)
t_1
(if (<= t 6.095104110294208e-81)
(/
2.0
(*
(/ (pow (sin k) 2.0) (* l l))
(+ (/ (* t (* k k)) (cos k)) (* 2.0 (/ (pow t 3.0) (cos k))))))
t_1))))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 t_1 = 2.0 / (pow(((t / pow(cbrt(l), 2.0)) * (cbrt(sin(k)) * cbrt(tan(k)))), 3.0) * (2.0 + pow((k / t), 2.0)));
double tmp;
if (t <= -5.1236186620617494e-11) {
tmp = t_1;
} else if (t <= 6.095104110294208e-81) {
tmp = 2.0 / ((pow(sin(k), 2.0) / (l * l)) * (((t * (k * k)) / cos(k)) + (2.0 * (pow(t, 3.0) / cos(k)))));
} else {
tmp = t_1;
}
return tmp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -5.12361866206174942e-11 or 6.0951041102942084e-81 < t Initial program 22.7
Simplified22.7
Applied egg-rr15.8
Applied egg-rr4.4
if -5.12361866206174942e-11 < t < 6.0951041102942084e-81Initial program 53.4
Simplified53.4
Taylor expanded in t around 0 36.4
Simplified25.6
Final simplification10.8
herbie shell --seed 2022130
(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))))