Initial program 13.3
\[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 flip--0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{\color{blue}{\frac{1 \cdot 1 - \left(\tan y \cdot \tan z\right) \cdot \left(\tan y \cdot \tan z\right)}{1 + \tan y \cdot \tan z}}} - \tan a\right)\]
Applied associate-/r/0.2
\[\leadsto x + \left(\color{blue}{\frac{\tan y + \tan z}{1 \cdot 1 - \left(\tan y \cdot \tan z\right) \cdot \left(\tan y \cdot \tan z\right)} \cdot \left(1 + \tan y \cdot \tan z\right)} - \tan a\right)\]
- Using strategy
rm Applied tan-quot0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 \cdot 1 - \left(\tan y \cdot \tan z\right) \cdot \left(\color{blue}{\frac{\sin y}{\cos y}} \cdot \tan z\right)} \cdot \left(1 + \tan y \cdot \tan z\right) - \tan a\right)\]
Applied associate-*l/0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 \cdot 1 - \left(\tan y \cdot \tan z\right) \cdot \color{blue}{\frac{\sin y \cdot \tan z}{\cos y}}} \cdot \left(1 + \tan y \cdot \tan z\right) - \tan a\right)\]
Applied tan-quot0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 \cdot 1 - \left(\tan y \cdot \color{blue}{\frac{\sin z}{\cos z}}\right) \cdot \frac{\sin y \cdot \tan z}{\cos y}} \cdot \left(1 + \tan y \cdot \tan z\right) - \tan a\right)\]
Applied associate-*r/0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 \cdot 1 - \color{blue}{\frac{\tan y \cdot \sin z}{\cos z}} \cdot \frac{\sin y \cdot \tan z}{\cos y}} \cdot \left(1 + \tan y \cdot \tan z\right) - \tan a\right)\]
Applied frac-times0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 \cdot 1 - \color{blue}{\frac{\left(\tan y \cdot \sin z\right) \cdot \left(\sin y \cdot \tan z\right)}{\cos z \cdot \cos y}}} \cdot \left(1 + \tan y \cdot \tan z\right) - \tan a\right)\]
Final simplification0.2
\[\leadsto \left(\left(\tan z \cdot \tan y + 1\right) \cdot \frac{\tan y + \tan z}{1 - \frac{\left(\tan z \cdot \sin y\right) \cdot \left(\tan y \cdot \sin z\right)}{\cos y \cdot \cos z}} - \tan a\right) + x\]