Initial program 13.5
\[x + \left(\tan \left(y + z\right) - \tan a\right)\]
- Using strategy
rm Applied tan-sum0.2
\[\leadsto x + \left(\color{blue}{\frac{\tan y + \tan z}{1 - \tan y \cdot \tan z}} - \tan a\right)\]
- Using strategy
rm Applied tan-quot0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \tan y \cdot \color{blue}{\frac{\sin z}{\cos z}}} - \tan a\right)\]
Applied associate-*r/0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \color{blue}{\frac{\tan y \cdot \sin z}{\cos z}}} - \tan a\right)\]
- Using strategy
rm Applied tan-quot0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \frac{\tan y \cdot \sin z}{\cos z}} - \color{blue}{\frac{\sin a}{\cos a}}\right)\]
Applied frac-sub0.2
\[\leadsto x + \color{blue}{\frac{\left(\tan y + \tan z\right) \cdot \cos a - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a}}\]
- Using strategy
rm Applied flip--0.2
\[\leadsto x + \frac{\left(\tan y + \tan z\right) \cdot \cos a - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\color{blue}{\frac{1 \cdot 1 - \frac{\tan y \cdot \sin z}{\cos z} \cdot \frac{\tan y \cdot \sin z}{\cos z}}{1 + \frac{\tan y \cdot \sin z}{\cos z}}} \cdot \cos a}\]
Applied associate-*l/0.2
\[\leadsto x + \frac{\left(\tan y + \tan z\right) \cdot \cos a - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\color{blue}{\frac{\left(1 \cdot 1 - \frac{\tan y \cdot \sin z}{\cos z} \cdot \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a}{1 + \frac{\tan y \cdot \sin z}{\cos z}}}}\]
Applied associate-/r/0.2
\[\leadsto x + \color{blue}{\frac{\left(\tan y + \tan z\right) \cdot \cos a - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\left(1 \cdot 1 - \frac{\tan y \cdot \sin z}{\cos z} \cdot \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a} \cdot \left(1 + \frac{\tan y \cdot \sin z}{\cos z}\right)}\]
Final simplification0.2
\[\leadsto \left(\frac{\tan y \cdot \sin z}{\cos z} + 1\right) \cdot \frac{\cos a \cdot \left(\tan y + \tan z\right) - \sin a \cdot \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right)}{\left(1 - \frac{\tan y \cdot \sin z}{\cos z} \cdot \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a} + x\]