\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\pi \cdot \ell - 1 \cdot \frac{\frac{1}{F}}{\frac{F}{\pi \cdot \ell} + \pi \cdot \left(\ell \cdot \left(F \cdot \frac{-1}{3}\right)\right)}double code(double F, double l) {
return ((double) (((double) (((double) M_PI) * l)) - ((double) (((double) (1.0 / ((double) (F * F)))) * ((double) tan(((double) (((double) M_PI) * l))))))));
}
double code(double F, double l) {
return ((double) (((double) (((double) M_PI) * l)) - ((double) (1.0 * ((double) (((double) (1.0 / F)) / ((double) (((double) (F / ((double) (((double) M_PI) * l)))) + ((double) (((double) M_PI) * ((double) (l * ((double) (F * -0.3333333333333333))))))))))))));
}



Bits error versus F



Bits error versus l
Results
Initial program 16.8
Simplified16.6
rmApplied clear-num16.6
Simplified12.3
rmApplied associate-/r*12.3
Taylor expanded around 0 8.3
Simplified8.3
Final simplification8.3
herbie shell --seed 2020179
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))