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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 47.8
Simplified40.2
Taylor expanded around 0 22.3
Simplified22.3
rmApplied associate-/r*_binary6422.3
Simplified21.4
rmApplied times-frac_binary649.8
Applied associate-*l*_binary644.2
Simplified4.2
rmApplied associate-*l*_binary643.4
Final simplification3.4
herbie shell --seed 2021175
(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))))