\frac{x - \sin x}{x - \tan x}\begin{array}{l}
\mathbf{if}\;x \le -2.36088798636529651 \lor \neg \left(x \le 2.3734522517745011\right):\\
\;\;\;\;\frac{x - \sin x}{\left(\left(x + \frac{{\left(\sin x\right)}^{2}}{x \cdot {\left(\cos x\right)}^{2}}\right) - \frac{\sin x}{\cos x}\right) - \frac{\tan x \cdot \tan x}{x + \tan x}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{9}{40}, {x}^{2}, -\mathsf{fma}\left(\frac{27}{2800}, {x}^{4}, \frac{1}{2}\right)\right)\\
\end{array}double code(double x) {
return ((x - sin(x)) / (x - tan(x)));
}
double code(double x) {
double VAR;
if (((x <= -2.3608879863652965) || !(x <= 2.373452251774501))) {
VAR = ((x - sin(x)) / (((x + (pow(sin(x), 2.0) / (x * pow(cos(x), 2.0)))) - (sin(x) / cos(x))) - ((tan(x) * tan(x)) / (x + tan(x)))));
} else {
VAR = fma(0.225, pow(x, 2.0), -fma(0.009642857142857142, pow(x, 4.0), 0.5));
}
return VAR;
}



Bits error versus x
Results
if x < -2.3608879863652965 or 2.373452251774501 < x Initial program 0.0
rmApplied flip--31.2
rmApplied div-sub31.2
Taylor expanded around inf 0.4
if -2.3608879863652965 < x < 2.373452251774501Initial program 62.9
Taylor expanded around 0 0.1
Simplified0.1
Final simplification0.3
herbie shell --seed 2020078 +o rules:numerics
(FPCore (x)
:name "sintan (problem 3.4.5)"
:precision binary64
(/ (- x (sin x)) (- x (tan x))))