Initial program 13.4
\[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-log-exp0.2
\[\leadsto x + \left(\frac{\tan y + \color{blue}{\log \left(e^{\tan z}\right)}}{1 - \tan y \cdot \tan z} - \tan a\right)\]
Applied add-log-exp0.3
\[\leadsto x + \left(\frac{\color{blue}{\log \left(e^{\tan y}\right)} + \log \left(e^{\tan z}\right)}{1 - \tan y \cdot \tan z} - \tan a\right)\]
Applied sum-log0.3
\[\leadsto x + \left(\frac{\color{blue}{\log \left(e^{\tan y} \cdot e^{\tan z}\right)}}{1 - \tan y \cdot \tan z} - \tan a\right)\]
Simplified0.3
\[\leadsto x + \left(\frac{\log \color{blue}{\left(e^{\tan y + \tan z}\right)}}{1 - \tan y \cdot \tan z} - \tan a\right)\]
- Using strategy
rm Applied tan-quot0.3
\[\leadsto x + \left(\frac{\log \left(e^{\tan y + \tan z}\right)}{1 - \tan y \cdot \tan z} - \color{blue}{\frac{\sin a}{\cos a}}\right)\]
Applied frac-sub0.3
\[\leadsto x + \color{blue}{\frac{\log \left(e^{\tan y + \tan z}\right) \cdot \cos a - \left(1 - \tan y \cdot \tan z\right) \cdot \sin a}{\left(1 - \tan y \cdot \tan z\right) \cdot \cos a}}\]
Simplified0.2
\[\leadsto x + \frac{\color{blue}{\left(\tan z \cdot \sin a\right) \cdot \tan y + \left(\left(\tan y + \tan z\right) \cdot \cos a - \sin a\right)}}{\left(1 - \tan y \cdot \tan z\right) \cdot \cos a}\]
Final simplification0.2
\[\leadsto \frac{\left(\left(\tan y + \tan z\right) \cdot \cos a - \sin a\right) + \tan y \cdot \left(\sin a \cdot \tan z\right)}{\left(1 - \tan y \cdot \tan z\right) \cdot \cos a} + x\]