Initial program 12.7
\[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 add-sqr-sqrt31.3
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \tan y \cdot \tan z} - \color{blue}{\sqrt{\tan a} \cdot \sqrt{\tan a}}\right)\]
Applied flip--31.3
\[\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}}} - \sqrt{\tan a} \cdot \sqrt{\tan a}\right)\]
Applied associate-/r/31.3
\[\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)} - \sqrt{\tan a} \cdot \sqrt{\tan a}\right)\]
Applied prod-diff31.3
\[\leadsto x + \color{blue}{\left((\left(\frac{\tan y + \tan z}{1 \cdot 1 - \left(\tan y \cdot \tan z\right) \cdot \left(\tan y \cdot \tan z\right)}\right) \cdot \left(1 + \tan y \cdot \tan z\right) + \left(-\sqrt{\tan a} \cdot \sqrt{\tan a}\right))_* + (\left(-\sqrt{\tan a}\right) \cdot \left(\sqrt{\tan a}\right) + \left(\sqrt{\tan a} \cdot \sqrt{\tan a}\right))_*\right)}\]
Simplified31.3
\[\leadsto x + \left(\color{blue}{\left(\frac{(\left(\tan y + \tan z\right) \cdot \left(\tan z \cdot \tan y\right) + \left(\tan y + \tan z\right))_*}{1 - \left(\tan z \cdot \tan y\right) \cdot \left(\tan z \cdot \tan y\right)} - \tan a\right)} + (\left(-\sqrt{\tan a}\right) \cdot \left(\sqrt{\tan a}\right) + \left(\sqrt{\tan a} \cdot \sqrt{\tan a}\right))_*\right)\]
Simplified0.2
\[\leadsto x + \left(\left(\frac{(\left(\tan y + \tan z\right) \cdot \left(\tan z \cdot \tan y\right) + \left(\tan y + \tan z\right))_*}{1 - \left(\tan z \cdot \tan y\right) \cdot \left(\tan z \cdot \tan y\right)} - \tan a\right) + \color{blue}{0}\right)\]
- Using strategy
rm Applied associate-*r*0.2
\[\leadsto x + \left(\left(\frac{(\left(\tan y + \tan z\right) \cdot \left(\tan z \cdot \tan y\right) + \left(\tan y + \tan z\right))_*}{1 - \color{blue}{\left(\left(\tan z \cdot \tan y\right) \cdot \tan z\right) \cdot \tan y}} - \tan a\right) + 0\right)\]
- Using strategy
rm Applied tan-quot0.2
\[\leadsto x + \left(\left(\frac{(\left(\tan y + \tan z\right) \cdot \left(\tan z \cdot \tan y\right) + \left(\tan y + \tan z\right))_*}{1 - \left(\left(\tan z \cdot \color{blue}{\frac{\sin y}{\cos y}}\right) \cdot \tan z\right) \cdot \tan y} - \tan a\right) + 0\right)\]
Applied associate-*r/0.2
\[\leadsto x + \left(\left(\frac{(\left(\tan y + \tan z\right) \cdot \left(\tan z \cdot \tan y\right) + \left(\tan y + \tan z\right))_*}{1 - \left(\color{blue}{\frac{\tan z \cdot \sin y}{\cos y}} \cdot \tan z\right) \cdot \tan y} - \tan a\right) + 0\right)\]
Applied associate-*l/0.2
\[\leadsto x + \left(\left(\frac{(\left(\tan y + \tan z\right) \cdot \left(\tan z \cdot \tan y\right) + \left(\tan y + \tan z\right))_*}{1 - \color{blue}{\frac{\left(\tan z \cdot \sin y\right) \cdot \tan z}{\cos y}} \cdot \tan y} - \tan a\right) + 0\right)\]
Applied associate-*l/0.2
\[\leadsto x + \left(\left(\frac{(\left(\tan y + \tan z\right) \cdot \left(\tan z \cdot \tan y\right) + \left(\tan y + \tan z\right))_*}{1 - \color{blue}{\frac{\left(\left(\tan z \cdot \sin y\right) \cdot \tan z\right) \cdot \tan y}{\cos y}}} - \tan a\right) + 0\right)\]
Final simplification0.2
\[\leadsto x + \left(\frac{(\left(\tan y + \tan z\right) \cdot \left(\tan z \cdot \tan y\right) + \left(\tan y + \tan z\right))_*}{1 - \frac{\left(\tan z \cdot \left(\tan z \cdot \sin y\right)\right) \cdot \tan y}{\cos y}} - \tan a\right)\]