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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 47.8
Simplified37.1
Taylor expanded around inf 17.6
Simplified11.0
rmApplied frac-times_binary64_4298.5
Applied associate-/r/_binary64_3658.5
Applied associate-*r*_binary64_3596.8
Simplified6.7
rmApplied associate-*r/_binary64_3616.7
Applied associate-*r/_binary64_3617.0
Simplified3.5
rmApplied unpow2_binary64_4843.5
Applied times-frac_binary64_4251.0
Final simplification1.0
herbie shell --seed 2021176
(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))))