\frac{x - \sin x}{x - \tan x}\begin{array}{l}
\mathbf{if}\;x \leq -0.02666523152166068 \lor \neg \left(x \leq 0.028588739690112084\right):\\
\;\;\;\;\frac{x - \sin x}{x - \tan x}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(x \cdot 0.225\right) + -0.5\right) + {x}^{4} \cdot -0.009642857142857142\\
\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.02666523152166068) || !(x <= 0.028588739690112084))) {
VAR = (((double) (x - ((double) sin(x)))) / ((double) (x - ((double) tan(x)))));
} 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.026665231521660681 or 0.028588739690112084 < x Initial program Error: 0.1 bits
if -0.026665231521660681 < x < 0.028588739690112084Initial program Error: 63.2 bits
Taylor expanded around 0 Error: 0.0 bits
SimplifiedError: 0.0 bits
rmApplied associate-+r+Error: 0.0 bits
Final simplificationError: 0.0 bits
herbie shell --seed 2020200
(FPCore (x)
:name "sintan (problem 3.4.5)"
:precision binary64
(/ (- x (sin x)) (- x (tan x))))