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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 48.2
Simplified40.5
Taylor expanded around inf 22.6
Simplified22.6
rmApplied associate-*l*_binary6420.3
rmApplied associate-/r*_binary6418.2
Simplified18.1
rmApplied associate-/l*_binary6413.0
Final simplification13.0
herbie shell --seed 2020220
(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))))