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



Bits error versus x
Results
if x < -0.02453727723232867 or 0.02902705871059986 < x Initial program 0.1
rmApplied add-cbrt-cube41.3
Applied add-cbrt-cube42.5
Applied cbrt-undiv42.5
Simplified0.1
if -0.02453727723232867 < x < 0.02902705871059986Initial program 63.0
Taylor expanded around 0 0.0
rmApplied associate--r+0.0
Final simplification0.0
herbie shell --seed 2020100
(FPCore (x)
:name "sintan (problem 3.4.5)"
:precision binary64
(/ (- x (sin x)) (- x (tan x))))