\frac{x - \sin x}{x - \tan x}\begin{array}{l}
\mathbf{if}\;x \leq -0.029101539732209875:\\
\;\;\;\;\sqrt[3]{{\left(\frac{x - \sin x}{x - \tan x}\right)}^{3}}\\
\mathbf{elif}\;x \leq 0.02423900971992383:\\
\;\;\;\;x \cdot \left(x \cdot 0.225\right) + \left(-0.5 + {x}^{4} \cdot -0.009642857142857142\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \sin x}{x - \frac{\sin x}{\cos x}}\\
\end{array}double code(double x) {
return (((double) (x - ((double) sin(x)))) / ((double) (x - ((double) tan(x)))));
}
double code(double x) {
double VAR;
if ((x <= -0.029101539732209875)) {
VAR = ((double) cbrt(((double) pow((((double) (x - ((double) sin(x)))) / ((double) (x - ((double) tan(x))))), 3.0))));
} else {
double VAR_1;
if ((x <= 0.02423900971992383)) {
VAR_1 = ((double) (((double) (x * ((double) (x * 0.225)))) + ((double) (-0.5 + ((double) (((double) pow(x, 4.0)) * -0.009642857142857142))))));
} else {
VAR_1 = (((double) (x - ((double) sin(x)))) / ((double) (x - (((double) sin(x)) / ((double) cos(x))))));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x
Results
if x < -0.0291015397322098752Initial program 0.1
rmApplied add-cbrt-cube41.7
Applied add-cbrt-cube42.9
Applied cbrt-undiv42.8
Simplified0.1
if -0.0291015397322098752 < x < 0.0242390097199238312Initial program 63.3
Taylor expanded around 0 0.0
Simplified0.0
if 0.0242390097199238312 < x Initial program 0.1
Taylor expanded around inf 0.1
Final simplification0.0
herbie shell --seed 2020199
(FPCore (x)
:name "sintan (problem 3.4.5)"
:precision binary64
(/ (- x (sin x)) (- x (tan x))))