\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\pi \cdot \ell - \frac{1}{F} \cdot \frac{\tan \left(\pi \cdot \ell\right)}{F}(FPCore (F l) :precision binary64 (- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))
(FPCore (F l) :precision binary64 (- (* PI l) (* (/ 1.0 F) (/ (tan (* PI l)) 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) - ((1.0 / F) * (tan(((double) M_PI) * l) / F));
}



Bits error versus F



Bits error versus l
Results
Initial program 16.3
Simplified16.0
rmApplied *-un-lft-identity_binary6416.0
Applied times-frac_binary6412.2
Final simplification12.2
herbie shell --seed 2020280
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))