\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)
\pi \cdot \ell - \frac{\frac{1}{F}}{\frac{F}{\pi \cdot \ell} - \mathsf{fma}\left(F, \mathsf{fma}\left(0.3333333333333333, \pi \cdot \ell, 0.022222222222222223 \cdot \left({\pi}^{3} \cdot {\ell}^{3}\right)\right), 0.0021164021164021165 \cdot \left({\pi}^{5} \cdot \left(F \cdot {\ell}^{5}\right)\right)\right)}
(FPCore (F l) :precision binary64 (- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))
(FPCore (F l)
:precision binary64
(-
(* PI l)
(/
(/ 1.0 F)
(-
(/ F (* PI l))
(fma
F
(fma
0.3333333333333333
(* PI l)
(* 0.022222222222222223 (* (pow PI 3.0) (pow l 3.0))))
(* 0.0021164021164021165 (* (pow PI 5.0) (* F (pow l 5.0)))))))))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) / ((F / (((double) M_PI) * l)) - fma(F, fma(0.3333333333333333, (((double) M_PI) * l), (0.022222222222222223 * (pow(((double) M_PI), 3.0) * pow(l, 3.0)))), (0.0021164021164021165 * (pow(((double) M_PI), 5.0) * (F * pow(l, 5.0)))))));
}



Bits error versus F



Bits error versus l
Initial program 17.0
Simplified16.7
Applied clear-num_binary6416.8
Simplified12.6
Applied div-inv_binary6412.6
Applied associate-/r*_binary6412.6
Taylor expanded in l around 0 2.4
Simplified2.4
Final simplification2.4
herbie shell --seed 2022117
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))