\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\pi \cdot \ell - \frac{\tan \left(\pi \cdot \ell\right) \cdot \frac{1}{F}}{F}(FPCore (F l) :precision binary64 (- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))
(FPCore (F l) :precision binary64 (- (* PI l) (/ (* (tan (* PI l)) (/ 1.0 F)) F)))
double code(double F, double l) {
return (((double) M_PI) * l) - ((1.0 / (F * F)) * tan(((double) M_PI) * l));
}
double code(double F, double l) {
return (((double) M_PI) * l) - ((tan(((double) M_PI) * l) * (1.0 / F)) / F);
}



Bits error versus F



Bits error versus l
Results
Initial program 16.5
Simplified16.3
rmApplied associate-/r*_binary6412.1
rmApplied div-inv_binary6412.1
Final simplification12.1
herbie shell --seed 2020231
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))