\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\begin{array}{l}
\mathbf{if}\;\pi \cdot \ell \le -3.25877154259171114 \cdot 10^{163}:\\
\;\;\;\;\pi \cdot \ell - \frac{\sqrt{1}}{F} \cdot \frac{\sin \left(\pi \cdot \ell\right) \cdot \sqrt{1}}{\cos \left(\left(\sqrt[3]{\pi \cdot \ell} \cdot \left(\sqrt[3]{-1} \cdot \sqrt[3]{e^{\log \pi - \log \left(\frac{-1}{\ell}\right)}}\right)\right) \cdot \sqrt[3]{\pi \cdot \ell}\right) \cdot F}\\
\mathbf{elif}\;\pi \cdot \ell \le 7.52430755046992877 \cdot 10^{152}:\\
\;\;\;\;\pi \cdot \ell - \frac{\sqrt{1}}{F} \cdot \frac{\sin \left(\pi \cdot \ell\right) \cdot \sqrt{1}}{\mathsf{fma}\left({\pi}^{2} \cdot {\ell}^{2}, \frac{-1}{2}, \mathsf{fma}\left(\frac{1}{24}, {\pi}^{4} \cdot {\ell}^{4}, 1\right)\right) \cdot F}\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \ell - \frac{\sqrt{1}}{F} \cdot \left(\frac{\sqrt{1}}{F} \cdot \tan \left(\sqrt{\pi} \cdot \left(\sqrt{\pi} \cdot \ell\right)\right)\right)\\
\end{array}double f(double F, double l) {
double r18934 = atan2(1.0, 0.0);
double r18935 = l;
double r18936 = r18934 * r18935;
double r18937 = 1.0;
double r18938 = F;
double r18939 = r18938 * r18938;
double r18940 = r18937 / r18939;
double r18941 = tan(r18936);
double r18942 = r18940 * r18941;
double r18943 = r18936 - r18942;
return r18943;
}
double f(double F, double l) {
double r18944 = atan2(1.0, 0.0);
double r18945 = l;
double r18946 = r18944 * r18945;
double r18947 = -3.258771542591711e+163;
bool r18948 = r18946 <= r18947;
double r18949 = 1.0;
double r18950 = sqrt(r18949);
double r18951 = F;
double r18952 = r18950 / r18951;
double r18953 = sin(r18946);
double r18954 = r18953 * r18950;
double r18955 = cbrt(r18946);
double r18956 = -1.0;
double r18957 = cbrt(r18956);
double r18958 = log(r18944);
double r18959 = r18956 / r18945;
double r18960 = log(r18959);
double r18961 = r18958 - r18960;
double r18962 = exp(r18961);
double r18963 = cbrt(r18962);
double r18964 = r18957 * r18963;
double r18965 = r18955 * r18964;
double r18966 = r18965 * r18955;
double r18967 = cos(r18966);
double r18968 = r18967 * r18951;
double r18969 = r18954 / r18968;
double r18970 = r18952 * r18969;
double r18971 = r18946 - r18970;
double r18972 = 7.524307550469929e+152;
bool r18973 = r18946 <= r18972;
double r18974 = 2.0;
double r18975 = pow(r18944, r18974);
double r18976 = pow(r18945, r18974);
double r18977 = r18975 * r18976;
double r18978 = -0.5;
double r18979 = 0.041666666666666664;
double r18980 = 4.0;
double r18981 = pow(r18944, r18980);
double r18982 = pow(r18945, r18980);
double r18983 = r18981 * r18982;
double r18984 = 1.0;
double r18985 = fma(r18979, r18983, r18984);
double r18986 = fma(r18977, r18978, r18985);
double r18987 = r18986 * r18951;
double r18988 = r18954 / r18987;
double r18989 = r18952 * r18988;
double r18990 = r18946 - r18989;
double r18991 = sqrt(r18944);
double r18992 = r18991 * r18945;
double r18993 = r18991 * r18992;
double r18994 = tan(r18993);
double r18995 = r18952 * r18994;
double r18996 = r18952 * r18995;
double r18997 = r18946 - r18996;
double r18998 = r18973 ? r18990 : r18997;
double r18999 = r18948 ? r18971 : r18998;
return r18999;
}



Bits error versus F



Bits error versus l
if (* PI l) < -3.258771542591711e+163Initial program 19.2
rmApplied add-sqr-sqrt19.2
Applied times-frac19.2
Applied associate-*l*19.2
Taylor expanded around inf 19.2
rmApplied add-cube-cbrt19.2
Taylor expanded around -inf 19.2
Simplified19.2
if -3.258771542591711e+163 < (* PI l) < 7.524307550469929e+152Initial program 15.2
rmApplied add-sqr-sqrt15.2
Applied times-frac15.2
Applied associate-*l*9.7
Taylor expanded around inf 9.7
rmApplied add-cube-cbrt9.7
Taylor expanded around 0 4.4
Simplified4.4
if 7.524307550469929e+152 < (* PI l) Initial program 20.2
rmApplied add-sqr-sqrt20.2
Applied times-frac20.2
Applied associate-*l*20.2
rmApplied add-sqr-sqrt20.2
Applied associate-*l*20.2
Final simplification8.6
herbie shell --seed 2020042 +o rules:numerics
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))