\frac{x - \sin x}{x - \tan x}\begin{array}{l}
\mathbf{if}\;x \le -0.030429044600799128:\\
\;\;\;\;\log \left(e^{\sqrt[3]{\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}} \cdot \left(\sqrt[3]{\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}} \cdot \sqrt[3]{\frac{x}{x - \tan x} - \frac{\sin x}{\sqrt[3]{\left(x - \tan x\right) \cdot \left(\left(x - \tan x\right) \cdot \left(x - \tan x\right)\right)}}}\right)}\right)\\
\mathbf{elif}\;x \le 0.031237931746953045:\\
\;\;\;\;\frac{9}{40} \cdot \left(x \cdot x\right) - \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \frac{27}{2800} + \frac{1}{2}\right)\\
\mathbf{else}:\\
\;\;\;\;\log \left(e^{\sqrt[3]{\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}} \cdot \left(\sqrt[3]{\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}} \cdot \sqrt[3]{\frac{x}{x - \tan x} - \frac{\sin x}{\sqrt[3]{\left(x - \tan x\right) \cdot \left(\left(x - \tan x\right) \cdot \left(x - \tan x\right)\right)}}}\right)}\right)\\
\end{array}double f(double x) {
double r834445 = x;
double r834446 = sin(r834445);
double r834447 = r834445 - r834446;
double r834448 = tan(r834445);
double r834449 = r834445 - r834448;
double r834450 = r834447 / r834449;
return r834450;
}
double f(double x) {
double r834451 = x;
double r834452 = -0.030429044600799128;
bool r834453 = r834451 <= r834452;
double r834454 = tan(r834451);
double r834455 = r834451 - r834454;
double r834456 = r834451 / r834455;
double r834457 = sin(r834451);
double r834458 = r834457 / r834455;
double r834459 = r834456 - r834458;
double r834460 = cbrt(r834459);
double r834461 = r834455 * r834455;
double r834462 = r834455 * r834461;
double r834463 = cbrt(r834462);
double r834464 = r834457 / r834463;
double r834465 = r834456 - r834464;
double r834466 = cbrt(r834465);
double r834467 = r834460 * r834466;
double r834468 = r834460 * r834467;
double r834469 = exp(r834468);
double r834470 = log(r834469);
double r834471 = 0.031237931746953045;
bool r834472 = r834451 <= r834471;
double r834473 = 0.225;
double r834474 = r834451 * r834451;
double r834475 = r834473 * r834474;
double r834476 = r834474 * r834474;
double r834477 = 0.009642857142857142;
double r834478 = r834476 * r834477;
double r834479 = 0.5;
double r834480 = r834478 + r834479;
double r834481 = r834475 - r834480;
double r834482 = r834472 ? r834481 : r834470;
double r834483 = r834453 ? r834470 : r834482;
return r834483;
}



Bits error versus x
Results
if x < -0.030429044600799128 or 0.031237931746953045 < x Initial program 0.1
rmApplied div-sub0.1
rmApplied add-log-exp0.1
rmApplied add-cube-cbrt0.1
rmApplied add-cbrt-cube0.1
if -0.030429044600799128 < x < 0.031237931746953045Initial program 62.7
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.1
herbie shell --seed 2019107
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))