\frac{x - \sin x}{x - \tan x}\begin{array}{l}
\mathbf{if}\;x \le -1.5618953286310733:\\
\;\;\;\;\sqrt{\frac{x - \sin x}{x - \tan x}} \cdot \sqrt{\frac{x - \sin x}{x - \tan x}}\\
\mathbf{elif}\;x \le 0.02091941603376413:\\
\;\;\;\;\frac{9}{40} \cdot {x}^{2} - \left(\frac{27}{2800} \cdot {x}^{4} + \frac{1}{2}\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(\frac{x - \sin x}{x - \tan x}\right)}^{3}}\\
\end{array}double code(double x) {
return ((x - sin(x)) / (x - tan(x)));
}
double code(double x) {
double temp;
if ((x <= -1.5618953286310733)) {
temp = (sqrt(((x - sin(x)) / (x - tan(x)))) * sqrt(((x - sin(x)) / (x - tan(x)))));
} else {
double temp_1;
if ((x <= 0.020919416033764127)) {
temp_1 = ((0.225 * pow(x, 2.0)) - ((0.009642857142857142 * pow(x, 4.0)) + 0.5));
} else {
temp_1 = cbrt(pow(((x - sin(x)) / (x - tan(x))), 3.0));
}
temp = temp_1;
}
return temp;
}



Bits error versus x
Results
if x < -1.5618953286310733Initial program 0.0
rmApplied add-sqr-sqrt0.0
if -1.5618953286310733 < x < 0.020919416033764127Initial program 63.0
Taylor expanded around 0 0.1
if 0.020919416033764127 < x Initial program 0.1
rmApplied add-cbrt-cube41.0
Applied add-cbrt-cube42.2
Applied cbrt-undiv42.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020066
(FPCore (x)
:name "sintan (problem 3.4.5)"
:precision binary64
(/ (- x (sin x)) (- x (tan x))))