\frac{x - \sin x}{x - \tan x}\begin{array}{l}
\mathbf{if}\;x \le -0.033049280051316229 \lor \neg \left(x \le 0.029172484020573174\right):\\
\;\;\;\;\sqrt[3]{{\left(\frac{x - \sin x}{x - \tan x}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(x \cdot \frac{9}{40}\right) + \frac{-1}{2}\right) + {x}^{4} \cdot \frac{-27}{2800}\\
\end{array}double code(double x) {
return ((double) (((double) (x - ((double) sin(x)))) / ((double) (x - ((double) tan(x))))));
}
double code(double x) {
double VAR;
if (((x <= -0.03304928005131623) || !(x <= 0.029172484020573174))) {
VAR = ((double) cbrt(((double) pow(((double) (((double) (x - ((double) sin(x)))) / ((double) (x - ((double) tan(x)))))), 3.0))));
} else {
VAR = ((double) (((double) (((double) (x * ((double) (x * 0.225)))) + -0.5)) + ((double) (((double) pow(x, 4.0)) * -0.009642857142857142))));
}
return VAR;
}



Bits error versus x
Results
if x < -0.033049280051316229 or 0.029172484020573174 < x Initial program 0.0
rmApplied add-cbrt-cube41.2
Applied add-cbrt-cube41.0
Applied cbrt-undiv41.0
Simplified0.1
if -0.033049280051316229 < x < 0.029172484020573174Initial program 62.8
Taylor expanded around 0 0.0
Simplified0.0
rmApplied associate-+r+0.0
Final simplification0.0
herbie shell --seed 2020184
(FPCore (x)
:name "sintan (problem 3.4.5)"
:precision binary64
(/ (- x (sin x)) (- x (tan x))))