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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 48.4
Simplified40.5
Taylor expanded around inf 23.0
Simplified23.0
rmApplied associate-/r*_binary6423.0
Simplified21.8
rmApplied times-frac_binary6410.0
Applied associate-*l*_binary644.2
rmApplied unpow2_binary644.2
Applied associate-*r*_binary642.7
Final simplification2.7
herbie shell --seed 2020274
(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))))