\frac{x - \sin x}{x - \tan x}\begin{array}{l}
\mathbf{if}\;x \le -0.026896790136361697:\\
\;\;\;\;\log \left(e^{\frac{x - \sin x}{x - \tan x}}\right)\\
\mathbf{elif}\;x \le 0.027208711435501284:\\
\;\;\;\;\mathsf{fma}\left(\frac{9}{40}, {x}^{2}, -\mathsf{fma}\left(\frac{27}{2800}, {x}^{4}, \frac{1}{2}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(\frac{x - \sin x}{x - \tan x}\right)}^{3}}\\
\end{array}double f(double x) {
double r19705 = x;
double r19706 = sin(r19705);
double r19707 = r19705 - r19706;
double r19708 = tan(r19705);
double r19709 = r19705 - r19708;
double r19710 = r19707 / r19709;
return r19710;
}
double f(double x) {
double r19711 = x;
double r19712 = -0.026896790136361697;
bool r19713 = r19711 <= r19712;
double r19714 = sin(r19711);
double r19715 = r19711 - r19714;
double r19716 = tan(r19711);
double r19717 = r19711 - r19716;
double r19718 = r19715 / r19717;
double r19719 = exp(r19718);
double r19720 = log(r19719);
double r19721 = 0.027208711435501284;
bool r19722 = r19711 <= r19721;
double r19723 = 0.225;
double r19724 = 2.0;
double r19725 = pow(r19711, r19724);
double r19726 = 0.009642857142857142;
double r19727 = 4.0;
double r19728 = pow(r19711, r19727);
double r19729 = 0.5;
double r19730 = fma(r19726, r19728, r19729);
double r19731 = -r19730;
double r19732 = fma(r19723, r19725, r19731);
double r19733 = 3.0;
double r19734 = pow(r19718, r19733);
double r19735 = cbrt(r19734);
double r19736 = r19722 ? r19732 : r19735;
double r19737 = r19713 ? r19720 : r19736;
return r19737;
}



Bits error versus x
if x < -0.026896790136361697Initial program 0.0
rmApplied add-cbrt-cube41.0
Applied add-cbrt-cube42.1
Applied cbrt-undiv42.1
Simplified0.1
rmApplied add-log-exp0.1
Simplified0.1
if -0.026896790136361697 < x < 0.027208711435501284Initial program 63.0
Taylor expanded around 0 0.0
Simplified0.0
if 0.027208711435501284 < x Initial program 0.1
rmApplied add-cbrt-cube40.9
Applied add-cbrt-cube42.1
Applied cbrt-undiv42.1
Simplified0.1
Final simplification0.0
herbie shell --seed 2020057 +o rules:numerics
(FPCore (x)
:name "sintan (problem 3.4.5)"
:precision binary64
(/ (- x (sin x)) (- x (tan x))))