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



Bits error versus F



Bits error versus l
Results
Initial program 16.6
rmApplied *-un-lft-identity16.6
Applied times-frac16.6
Applied associate-*l*12.3
rmApplied div-inv12.3
Applied associate-*l*12.3
Simplified12.3
rmApplied clear-num12.3
Final simplification12.3
herbie shell --seed 2020091
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))