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






Bits error versus t






Bits error versus l






Bits error versus k
Results
| Alternative 1 | |
|---|---|
| Accuracy | 9.4 |
| Cost | 1216 |
| Alternative 2 | |
|---|---|
| Accuracy | 26.4 |
| Cost | 1796 |
| Alternative 3 | |
|---|---|
| Accuracy | 29.8 |
| Cost | 1344 |
Initial program 48.3
Simplified40.8
Taylor expanded around inf 22.7
Simplified22.7
rmApplied associate-/r*_binary64_70421.7
Simplified21.7
rmApplied add-sqr-sqrt_binary64_78221.7
Simplified21.7
Simplified9.4
rmApplied unpow2_binary64_8259.4
Applied associate-*r*_binary64_7007.9
Final simplification7.9
herbie shell --seed 2020322
(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))))