\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)
\pi \cdot \ell - \frac{\frac{\tan \left(\pi \cdot \ell\right)}{-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)) (- 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) / -F) / -F);
}



Bits error versus F



Bits error versus l
Results
Initial program 16.4
Simplified16.2
rmApplied add-cube-cbrt_binary6416.3
Applied associate-/l*_binary6416.3
Simplified14.9
rmApplied frac-2neg_binary6414.9
Applied distribute-frac-neg_binary6414.9
Simplified12.5
rmApplied frac-2neg_binary6412.5
Applied distribute-frac-neg_binary6412.5
Final simplification12.5
herbie shell --seed 2021211
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))