\frac{x - \sin x}{x - \tan x}\begin{array}{l}
\mathbf{if}\;x \le -0.02637018616887369659718132197667728178203:\\
\;\;\;\;\frac{x - \sin x}{x - \tan x}\\
\mathbf{elif}\;x \le 0.02458873884700214090814895939729467500001:\\
\;\;\;\;\mathsf{fma}\left(\frac{9}{40}, x \cdot x, \mathsf{fma}\left(\frac{-27}{2800}, \left(x \cdot x\right) \cdot \left(x \cdot x\right), \frac{-1}{2}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}\\
\end{array}double f(double x) {
double r751544 = x;
double r751545 = sin(r751544);
double r751546 = r751544 - r751545;
double r751547 = tan(r751544);
double r751548 = r751544 - r751547;
double r751549 = r751546 / r751548;
return r751549;
}
double f(double x) {
double r751550 = x;
double r751551 = -0.026370186168873697;
bool r751552 = r751550 <= r751551;
double r751553 = sin(r751550);
double r751554 = r751550 - r751553;
double r751555 = tan(r751550);
double r751556 = r751550 - r751555;
double r751557 = r751554 / r751556;
double r751558 = 0.02458873884700214;
bool r751559 = r751550 <= r751558;
double r751560 = 0.225;
double r751561 = r751550 * r751550;
double r751562 = -0.009642857142857142;
double r751563 = r751561 * r751561;
double r751564 = -0.5;
double r751565 = fma(r751562, r751563, r751564);
double r751566 = fma(r751560, r751561, r751565);
double r751567 = r751550 / r751556;
double r751568 = r751553 / r751556;
double r751569 = r751567 - r751568;
double r751570 = r751559 ? r751566 : r751569;
double r751571 = r751552 ? r751557 : r751570;
return r751571;
}



Bits error versus x
if x < -0.026370186168873697Initial program 0.0
rmApplied flip3--41.7
Simplified41.7
Taylor expanded around inf 0.0
if -0.026370186168873697 < x < 0.02458873884700214Initial program 63.2
Taylor expanded around 0 0.0
Simplified0.0
if 0.02458873884700214 < x Initial program 0.0
rmApplied div-sub0.0
Final simplification0.0
herbie shell --seed 2019169 +o rules:numerics
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))