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)\]
Simplified0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{\color{blue}{1 - \tan z \cdot \tan y}} - \tan a\right)\]
- Using strategy
rm Applied add-log-exp0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \color{blue}{\log \left(e^{\tan z \cdot \tan y}\right)}} - \tan a\right)\]
- Using strategy
rm Applied add-cube-cbrt0.4
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \log \left(e^{\tan z \cdot \tan y}\right)} - \color{blue}{\left(\sqrt[3]{\tan a} \cdot \sqrt[3]{\tan a}\right) \cdot \sqrt[3]{\tan a}}\right)\]
Applied flip3--0.4
\[\leadsto x + \left(\frac{\tan y + \tan z}{\color{blue}{\frac{{1}^{3} - {\left(\log \left(e^{\tan z \cdot \tan y}\right)\right)}^{3}}{1 \cdot 1 + \left(\log \left(e^{\tan z \cdot \tan y}\right) \cdot \log \left(e^{\tan z \cdot \tan y}\right) + 1 \cdot \log \left(e^{\tan z \cdot \tan y}\right)\right)}}} - \left(\sqrt[3]{\tan a} \cdot \sqrt[3]{\tan a}\right) \cdot \sqrt[3]{\tan a}\right)\]
Applied associate-/r/0.4
\[\leadsto x + \left(\color{blue}{\frac{\tan y + \tan z}{{1}^{3} - {\left(\log \left(e^{\tan z \cdot \tan y}\right)\right)}^{3}} \cdot \left(1 \cdot 1 + \left(\log \left(e^{\tan z \cdot \tan y}\right) \cdot \log \left(e^{\tan z \cdot \tan y}\right) + 1 \cdot \log \left(e^{\tan z \cdot \tan y}\right)\right)\right)} - \left(\sqrt[3]{\tan a} \cdot \sqrt[3]{\tan a}\right) \cdot \sqrt[3]{\tan a}\right)\]
Applied prod-diff0.4
\[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(\frac{\tan y + \tan z}{{1}^{3} - {\left(\log \left(e^{\tan z \cdot \tan y}\right)\right)}^{3}}, 1 \cdot 1 + \left(\log \left(e^{\tan z \cdot \tan y}\right) \cdot \log \left(e^{\tan z \cdot \tan y}\right) + 1 \cdot \log \left(e^{\tan z \cdot \tan y}\right)\right), -\sqrt[3]{\tan a} \cdot \left(\sqrt[3]{\tan a} \cdot \sqrt[3]{\tan a}\right)\right) + \mathsf{fma}\left(-\sqrt[3]{\tan a}, \sqrt[3]{\tan a} \cdot \sqrt[3]{\tan a}, \sqrt[3]{\tan a} \cdot \left(\sqrt[3]{\tan a} \cdot \sqrt[3]{\tan a}\right)\right)\right)}\]
Simplified0.3
\[\leadsto x + \left(\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\tan z, \tan y, 1\right), \tan z \cdot \tan y, 1\right), \frac{\tan y + \tan z}{1 - {\left(\log \left(e^{\tan z \cdot \tan y}\right)\right)}^{3}}, -\tan a\right)} + \mathsf{fma}\left(-\sqrt[3]{\tan a}, \sqrt[3]{\tan a} \cdot \sqrt[3]{\tan a}, \sqrt[3]{\tan a} \cdot \left(\sqrt[3]{\tan a} \cdot \sqrt[3]{\tan a}\right)\right)\right)\]
Simplified0.3
\[\leadsto x + \left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\tan z, \tan y, 1\right), \tan z \cdot \tan y, 1\right), \frac{\tan y + \tan z}{1 - {\left(\log \left(e^{\tan z \cdot \tan y}\right)\right)}^{3}}, -\tan a\right) + \color{blue}{\mathsf{fma}\left(-\tan a, 1, \tan a\right)}\right)\]
Final simplification0.3
\[\leadsto x + \left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\tan z, \tan y, 1\right), \tan z \cdot \tan y, 1\right), \frac{\tan y + \tan z}{1 - {\left(\log \left(e^{\tan z \cdot \tan y}\right)\right)}^{3}}, -\tan a\right) + \mathsf{fma}\left(-\tan a, 1, \tan a\right)\right)\]