Initial program 0.6
\[\frac{\cos th}{\sqrt{2}} \cdot \left(a1 \cdot a1\right) + \frac{\cos th}{\sqrt{2}} \cdot \left(a2 \cdot a2\right)\]
- Using strategy
rm Applied associate-*r*0.5
\[\leadsto \frac{\cos th}{\sqrt{2}} \cdot \left(a1 \cdot a1\right) + \color{blue}{\left(\frac{\cos th}{\sqrt{2}} \cdot a2\right) \cdot a2}\]
- Using strategy
rm Applied associate-*l/0.5
\[\leadsto \color{blue}{\frac{\cos th \cdot \left(a1 \cdot a1\right)}{\sqrt{2}}} + \left(\frac{\cos th}{\sqrt{2}} \cdot a2\right) \cdot a2\]
- Using strategy
rm Applied add-sqr-sqrt0.5
\[\leadsto \frac{\cos th \cdot \left(a1 \cdot a1\right)}{\color{blue}{\sqrt{\sqrt{2}} \cdot \sqrt{\sqrt{2}}}} + \left(\frac{\cos th}{\sqrt{2}} \cdot a2\right) \cdot a2\]
Applied associate-/r*0.5
\[\leadsto \color{blue}{\frac{\frac{\cos th \cdot \left(a1 \cdot a1\right)}{\sqrt{\sqrt{2}}}}{\sqrt{\sqrt{2}}}} + \left(\frac{\cos th}{\sqrt{2}} \cdot a2\right) \cdot a2\]
Final simplification0.5
\[\leadsto a2 \cdot \left(\frac{\cos th}{\sqrt{2}} \cdot a2\right) + \frac{\frac{\left(a1 \cdot a1\right) \cdot \cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\sqrt{2}}}\]