Initial program 0.8
\[\left(\left(\left(\left(\left(\left(x1 \cdot x4\right) \cdot \left(\left(\left(\left(-x1\right) + x2\right) + x3\right) - x4\right) + x2 \cdot \left(\left(\left(x1 - x2\right) + x3\right) + x4\right)\right) + x3 \cdot \left(\left(\left(x1 + x2\right) - x3\right) + x4\right)\right) - \left(x2 \cdot x3\right) \cdot x4\right) - x1 \cdot x3\right) - x1 \cdot x2\right) - x4\]
Applied simplify 0.8
\[\leadsto \color{blue}{\left(\left(\left(x2 + \left(\left(-x1\right) + \left(x3 - x4\right)\right)\right) \cdot \left(x4 \cdot x1\right) + \left(\left(x2 + x1\right) - \left(x3 - x4\right)\right) \cdot x3\right) + \left(x2 \cdot \left(\left(x1 - x2\right) + \left(\left(x3 + x4\right) - x3 \cdot x4\right)\right) - \left(x2 + x3\right) \cdot x1\right)\right) - x4}\]
- Using strategy
rm
Applied add-log-exp 0.8
\[\leadsto \left(\left(\left(x2 + \left(\left(-x1\right) + \left(x3 - x4\right)\right)\right) \cdot \left(x4 \cdot x1\right) + \left(\left(x2 + x1\right) - \left(x3 - x4\right)\right) \cdot x3\right) + \left(x2 \cdot \left(\left(x1 - x2\right) + \left(\left(x3 + x4\right) - x3 \cdot x4\right)\right) - \color{blue}{\log \left(e^{\left(x2 + x3\right) \cdot x1}\right)}\right)\right) - x4\]
Applied add-log-exp 0.8
\[\leadsto \left(\left(\left(x2 + \left(\left(-x1\right) + \left(x3 - x4\right)\right)\right) \cdot \left(x4 \cdot x1\right) + \left(\left(x2 + x1\right) - \left(x3 - x4\right)\right) \cdot x3\right) + \left(\color{blue}{\log \left(e^{x2 \cdot \left(\left(x1 - x2\right) + \left(\left(x3 + x4\right) - x3 \cdot x4\right)\right)}\right)} - \log \left(e^{\left(x2 + x3\right) \cdot x1}\right)\right)\right) - x4\]
Applied diff-log 0.8
\[\leadsto \left(\left(\left(x2 + \left(\left(-x1\right) + \left(x3 - x4\right)\right)\right) \cdot \left(x4 \cdot x1\right) + \left(\left(x2 + x1\right) - \left(x3 - x4\right)\right) \cdot x3\right) + \color{blue}{\log \left(\frac{e^{x2 \cdot \left(\left(x1 - x2\right) + \left(\left(x3 + x4\right) - x3 \cdot x4\right)\right)}}{e^{\left(x2 + x3\right) \cdot x1}}\right)}\right) - x4\]
Applied add-log-exp 0.8
\[\leadsto \left(\left(\left(x2 + \left(\left(-x1\right) + \left(x3 - x4\right)\right)\right) \cdot \left(x4 \cdot x1\right) + \color{blue}{\log \left(e^{\left(\left(x2 + x1\right) - \left(x3 - x4\right)\right) \cdot x3}\right)}\right) + \log \left(\frac{e^{x2 \cdot \left(\left(x1 - x2\right) + \left(\left(x3 + x4\right) - x3 \cdot x4\right)\right)}}{e^{\left(x2 + x3\right) \cdot x1}}\right)\right) - x4\]
Applied add-log-exp 0.8
\[\leadsto \left(\left(\color{blue}{\log \left(e^{\left(x2 + \left(\left(-x1\right) + \left(x3 - x4\right)\right)\right) \cdot \left(x4 \cdot x1\right)}\right)} + \log \left(e^{\left(\left(x2 + x1\right) - \left(x3 - x4\right)\right) \cdot x3}\right)\right) + \log \left(\frac{e^{x2 \cdot \left(\left(x1 - x2\right) + \left(\left(x3 + x4\right) - x3 \cdot x4\right)\right)}}{e^{\left(x2 + x3\right) \cdot x1}}\right)\right) - x4\]
Applied sum-log 0.8
\[\leadsto \left(\color{blue}{\log \left(e^{\left(x2 + \left(\left(-x1\right) + \left(x3 - x4\right)\right)\right) \cdot \left(x4 \cdot x1\right)} \cdot e^{\left(\left(x2 + x1\right) - \left(x3 - x4\right)\right) \cdot x3}\right)} + \log \left(\frac{e^{x2 \cdot \left(\left(x1 - x2\right) + \left(\left(x3 + x4\right) - x3 \cdot x4\right)\right)}}{e^{\left(x2 + x3\right) \cdot x1}}\right)\right) - x4\]
Applied sum-log 0.7
\[\leadsto \color{blue}{\log \left(\left(e^{\left(x2 + \left(\left(-x1\right) + \left(x3 - x4\right)\right)\right) \cdot \left(x4 \cdot x1\right)} \cdot e^{\left(\left(x2 + x1\right) - \left(x3 - x4\right)\right) \cdot x3}\right) \cdot \frac{e^{x2 \cdot \left(\left(x1 - x2\right) + \left(\left(x3 + x4\right) - x3 \cdot x4\right)\right)}}{e^{\left(x2 + x3\right) \cdot x1}}\right)} - x4\]
- Removed slow pow expressions