- Split input into 3 regimes
if x < -1.587728855980735
Initial program 0.0
\[\frac{x - \sin x}{x - \tan x}\]
- Using strategy
rm Applied div-sub0.0
\[\leadsto \color{blue}{\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}}\]
if -1.587728855980735 < x < 0.024973858188222158
Initial program 62.4
\[\frac{x - \sin x}{x - \tan x}\]
Taylor expanded around 0 0.1
\[\leadsto \color{blue}{\frac{9}{40} \cdot {x}^{2} - \left(\frac{27}{2800} \cdot {x}^{4} + \frac{1}{2}\right)}\]
if 0.024973858188222158 < x
Initial program 0.0
\[\frac{x - \sin x}{x - \tan x}\]
- Using strategy
rm Applied div-sub0.1
\[\leadsto \color{blue}{\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}}\]
- Recombined 3 regimes into one program.
Applied simplify0.1
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;x \le -1.587728855980735 \lor \neg \left(x \le 0.024973858188222158\right):\\
\;\;\;\;\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}\\
\mathbf{else}:\\
\;\;\;\;\frac{9}{40} \cdot {x}^{2} - \left(\frac{1}{2} + \frac{27}{2800} \cdot {x}^{4}\right)\\
\end{array}}\]