\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)}\ell \cdot \frac{\frac{2}{\frac{k \cdot \left(t \cdot {\sin k}^{2}\right)}{\cos k}}}{\frac{k}{\ell}}(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 (* l (/ (/ 2.0 (/ (* k (* t (pow (sin k) 2.0))) (cos k))) (/ k l))))
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) {
return l * ((2.0 / ((k * (t * pow(sin(k), 2.0))) / cos(k))) / (k / l));
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 47.7
Simplified40.0
Taylor expanded around inf 22.7
Simplified22.7
rmApplied associate-*l*_binary64_36020.5
rmApplied times-frac_binary64_42518.3
Applied add-sqr-sqrt_binary64_44118.4
Applied times-frac_binary64_42518.4
rmApplied pow1_binary64_48018.4
Applied pow1_binary64_48018.4
Applied pow-prod-down_binary64_49018.4
Simplified9.2
Final simplification9.2
herbie shell --seed 2020355
(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))))