\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\pi \cdot \ell + 1 \cdot \left(\frac{1}{F} \cdot \frac{-1}{F \cdot \log \left({\left({\left(e^{\pi}\right)}^{\ell}\right)}^{\frac{-1}{3}}\right) + \frac{F}{\pi \cdot \ell}}\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) (-1.0 / ((double) (((double) (F * ((double) log(((double) pow(((double) pow(((double) exp(((double) M_PI))), l)), -0.3333333333333333)))))) + ((double) (F / ((double) (((double) M_PI) * l))))))))))))));
}



Bits error versus F



Bits error versus l
Results
Initial program 17.3
Simplified17.0
rmApplied clear-num17.0
Simplified12.8
Taylor expanded around 0 8.7
Simplified8.7
rmApplied add-sqr-sqrt8.7
Applied times-frac8.7
Simplified8.7
Simplified8.7
rmApplied add-log-exp0.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2020185
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))