- Split input into 2 regimes
if x < -0.03368541449468662 or 0.0313826824217051 < x
Initial program 0.1
\[\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}}\]
- Using strategy
rm Applied flip--0.1
\[\leadsto \color{blue}{\frac{\frac{x}{x - \tan x} \cdot \frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x} \cdot \frac{\sin x}{x - \tan x}}{\frac{x}{x - \tan x} + \frac{\sin x}{x - \tan x}}}\]
- Using strategy
rm Applied *-un-lft-identity0.1
\[\leadsto \frac{\frac{x}{x - \tan x} \cdot \frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x} \cdot \frac{\sin x}{x - \tan x}}{\color{blue}{1 \cdot \left(\frac{x}{x - \tan x} + \frac{\sin x}{x - \tan x}\right)}}\]
Applied add-sqr-sqrt0.1
\[\leadsto \frac{\color{blue}{\sqrt{\frac{x}{x - \tan x} \cdot \frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x} \cdot \frac{\sin x}{x - \tan x}} \cdot \sqrt{\frac{x}{x - \tan x} \cdot \frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x} \cdot \frac{\sin x}{x - \tan x}}}}{1 \cdot \left(\frac{x}{x - \tan x} + \frac{\sin x}{x - \tan x}\right)}\]
Applied times-frac0.1
\[\leadsto \color{blue}{\frac{\sqrt{\frac{x}{x - \tan x} \cdot \frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x} \cdot \frac{\sin x}{x - \tan x}}}{1} \cdot \frac{\sqrt{\frac{x}{x - \tan x} \cdot \frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x} \cdot \frac{\sin x}{x - \tan x}}}{\frac{x}{x - \tan x} + \frac{\sin x}{x - \tan x}}}\]
Applied simplify0.1
\[\leadsto \color{blue}{\sqrt{\left(\frac{x}{x - \tan x} + \frac{\sin x}{x - \tan x}\right) \cdot \left(\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}\right)}} \cdot \frac{\sqrt{\frac{x}{x - \tan x} \cdot \frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x} \cdot \frac{\sin x}{x - \tan x}}}{\frac{x}{x - \tan x} + \frac{\sin x}{x - \tan x}}\]
if -0.03368541449468662 < x < 0.0313826824217051
Initial program 62.6
\[\frac{x - \sin x}{x - \tan x}\]
Taylor expanded around 0 0.0
\[\leadsto \color{blue}{\frac{9}{40} \cdot {x}^{2} - \left(\frac{1}{2} + \frac{27}{2800} \cdot {x}^{4}\right)}\]
- Recombined 2 regimes into one program.
Applied simplify0.0
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;x \le -0.03368541449468662 \lor \neg \left(x \le 0.0313826824217051\right):\\
\;\;\;\;\sqrt{\left(\frac{x}{x - \tan x} + \frac{\sin x}{x - \tan x}\right) \cdot \left(\frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x}\right)} \cdot \frac{\sqrt{\frac{x}{x - \tan x} \cdot \frac{x}{x - \tan x} - \frac{\sin x}{x - \tan x} \cdot \frac{\sin x}{x - \tan x}}}{\frac{x}{x - \tan x} + \frac{\sin x}{x - \tan x}}\\
\mathbf{else}:\\
\;\;\;\;{x}^{2} \cdot \frac{9}{40} - \left(\frac{1}{2} + \frac{27}{2800} \cdot {x}^{4}\right)\\
\end{array}}\]