\[x1 + \left(\left(\left(\left(\left(\left(\left(2 \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) \cdot \left(\frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 3\right) + \left(x1 \cdot x1\right) \cdot \left(4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6\right)\right) \cdot \left(x1 \cdot x1 + 1\right) + \left(\left(3 \cdot x1\right) \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) + \left(x1 \cdot x1\right) \cdot x1\right) + x1\right) + 3 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 - 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right)\]
Test:
Rosa's FloatVsDoubleBenchmark
Bits:
128 bits
Bits error versus x1
Bits error versus x2
Time: 58.9 s
Input Error: 0.6
Output Error: 0.6
Log:
Profile: 🕒
\(\left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot x1\right) \cdot x1 + {\left(\sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}}} \cdot \sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3}\right)}^3\right) \cdot \left({x1}^2 + 1\right)\)
  1. Started with
    \[x1 + \left(\left(\left(\left(\left(\left(\left(2 \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) \cdot \left(\frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 3\right) + \left(x1 \cdot x1\right) \cdot \left(4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6\right)\right) \cdot \left(x1 \cdot x1 + 1\right) + \left(\left(3 \cdot x1\right) \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) + \left(x1 \cdot x1\right) \cdot x1\right) + x1\right) + 3 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 - 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right)\]
    0.6
  2. Applied simplify to get
    \[\color{red}{x1 + \left(\left(\left(\left(\left(\left(\left(2 \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) \cdot \left(\frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 3\right) + \left(x1 \cdot x1\right) \cdot \left(4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6\right)\right) \cdot \left(x1 \cdot x1 + 1\right) + \left(\left(3 \cdot x1\right) \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) + \left(x1 \cdot x1\right) \cdot x1\right) + x1\right) + 3 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 - 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right)} \leadsto \color{blue}{\left(\left(\left(x1 + x1\right) + \left({x1}^3 + \frac{\left(x1 \cdot \left(x1 \cdot 3\right)\right) \cdot \left(x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)\right)}{{x1}^2 + 1}\right)\right) + \left(\left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{{x1}^2 + 1} - 3\right) \cdot \frac{\left(x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)\right) \cdot \left(2 \cdot x1\right)}{{x1}^2 + 1} + \left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot {x1}^2\right) \cdot \left({x1}^2 + 1\right)\right) + \frac{3}{{x1}^2 + 1} \cdot \left(x1 \cdot \left(x1 \cdot 3\right) - \left(x1 + x2 \cdot 2\right)\right)}\]
    0.5
  3. Applied taylor to get
    \[\left(\left(\left(x1 + x1\right) + \left({x1}^3 + \frac{\left(x1 \cdot \left(x1 \cdot 3\right)\right) \cdot \left(x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)\right)}{{x1}^2 + 1}\right)\right) + \left(\left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{{x1}^2 + 1} - 3\right) \cdot \frac{\left(x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)\right) \cdot \left(2 \cdot x1\right)}{{x1}^2 + 1} + \left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot {x1}^2\right) \cdot \left({x1}^2 + 1\right)\right) + \frac{3}{{x1}^2 + 1} \cdot \left(x1 \cdot \left(x1 \cdot 3\right) - \left(x1 + x2 \cdot 2\right)\right) \leadsto \left(\left(\left(x1 + x1\right) + \left({x1}^3 + \frac{\left(6 \cdot \left(x2 \cdot {x1}^2\right) + 9 \cdot {x1}^{4}\right) - 3 \cdot {x1}^{3}}{{x1}^2 + 1}\right)\right) + \left(\left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{{x1}^2 + 1} - 3\right) \cdot \frac{\left(x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)\right) \cdot \left(2 \cdot x1\right)}{{x1}^2 + 1} + \left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot {x1}^2\right) \cdot \left({x1}^2 + 1\right)\right) + \frac{3}{{x1}^2 + 1} \cdot \left(x1 \cdot \left(x1 \cdot 3\right) - \left(x1 + x2 \cdot 2\right)\right)\]
    0.5
  4. Taylor expanded around inf to get
    \[\left(\left(\left(x1 + x1\right) + \left({x1}^3 + \frac{\color{red}{\left(6 \cdot \left(x2 \cdot {x1}^2\right) + 9 \cdot {x1}^{4}\right) - 3 \cdot {x1}^{3}}}{{x1}^2 + 1}\right)\right) + \left(\left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{{x1}^2 + 1} - 3\right) \cdot \frac{\left(x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)\right) \cdot \left(2 \cdot x1\right)}{{x1}^2 + 1} + \left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot {x1}^2\right) \cdot \left({x1}^2 + 1\right)\right) + \frac{3}{{x1}^2 + 1} \cdot \left(x1 \cdot \left(x1 \cdot 3\right) - \left(x1 + x2 \cdot 2\right)\right) \leadsto \left(\left(\left(x1 + x1\right) + \left({x1}^3 + \frac{\color{blue}{\left(6 \cdot \left(x2 \cdot {x1}^2\right) + 9 \cdot {x1}^{4}\right) - 3 \cdot {x1}^{3}}}{{x1}^2 + 1}\right)\right) + \left(\left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{{x1}^2 + 1} - 3\right) \cdot \frac{\left(x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)\right) \cdot \left(2 \cdot x1\right)}{{x1}^2 + 1} + \left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot {x1}^2\right) \cdot \left({x1}^2 + 1\right)\right) + \frac{3}{{x1}^2 + 1} \cdot \left(x1 \cdot \left(x1 \cdot 3\right) - \left(x1 + x2 \cdot 2\right)\right)\]
    0.5
  5. Applied simplify to get
    \[\color{red}{\left(\left(\left(x1 + x1\right) + \left({x1}^3 + \frac{\left(6 \cdot \left(x2 \cdot {x1}^2\right) + 9 \cdot {x1}^{4}\right) - 3 \cdot {x1}^{3}}{{x1}^2 + 1}\right)\right) + \left(\left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{{x1}^2 + 1} - 3\right) \cdot \frac{\left(x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)\right) \cdot \left(2 \cdot x1\right)}{{x1}^2 + 1} + \left(\frac{x1 \cdot \left(x1 \cdot 3\right) + \left(x2 \cdot 2 - x1\right)}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot {x1}^2\right) \cdot \left({x1}^2 + 1\right)\right) + \frac{3}{{x1}^2 + 1} \cdot \left(x1 \cdot \left(x1 \cdot 3\right) - \left(x1 + x2 \cdot 2\right)\right)} \leadsto \color{blue}{\left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot {x1}^2 + \frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}} \cdot \left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3\right)\right) \cdot \left({x1}^2 + 1\right)}\]
    0.5
  6. Using strategy rm
    0.5
  7. Applied square-mult to get
    \[\left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot \color{red}{{x1}^2} + \frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}} \cdot \left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3\right)\right) \cdot \left({x1}^2 + 1\right) \leadsto \left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot \color{blue}{\left(x1 \cdot x1\right)} + \frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}} \cdot \left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3\right)\right) \cdot \left({x1}^2 + 1\right)\]
    0.5
  8. Applied associate-*r* to get
    \[\left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\color{red}{\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot \left(x1 \cdot x1\right)} + \frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}} \cdot \left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3\right)\right) \cdot \left({x1}^2 + 1\right) \leadsto \left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\color{blue}{\left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot x1\right) \cdot x1} + \frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}} \cdot \left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3\right)\right) \cdot \left({x1}^2 + 1\right)\]
    0.5
  9. Using strategy rm
    0.5
  10. Applied add-cube-cbrt to get
    \[\left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot x1\right) \cdot x1 + \frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}} \cdot \color{red}{\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3\right)}\right) \cdot \left({x1}^2 + 1\right) \leadsto \left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot x1\right) \cdot x1 + \frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}} \cdot \color{blue}{{\left(\sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3}\right)}^3}\right) \cdot \left({x1}^2 + 1\right)\]
    0.6
  11. Applied add-cube-cbrt to get
    \[\left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot x1\right) \cdot x1 + \color{red}{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}}} \cdot {\left(\sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3}\right)}^3\right) \cdot \left({x1}^2 + 1\right) \leadsto \left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot x1\right) \cdot x1 + \color{blue}{{\left(\sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}}}\right)}^3} \cdot {\left(\sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3}\right)}^3\right) \cdot \left({x1}^2 + 1\right)\]
    0.6
  12. Applied cube-unprod to get
    \[\left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot x1\right) \cdot x1 + \color{red}{{\left(\sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}}}\right)}^3 \cdot {\left(\sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3}\right)}^3}\right) \cdot \left({x1}^2 + 1\right) \leadsto \left(\frac{3}{{x1}^2 + 1} \cdot \left({x1}^2 \cdot 3 - \left(x2 \cdot 2 + x1\right)\right) + \left(\frac{{x1}^{4} \cdot 9 - {x1}^2 \cdot \left(3 \cdot x1 - x2 \cdot 6\right)}{{x1}^2 + 1} + \left(\left(x1 + x1\right) + {x1}^3\right)\right)\right) + \left(\left(\left(\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{4}} - 6\right) \cdot x1\right) \cdot x1 + \color{blue}{{\left(\sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{\frac{{x1}^2 + 1}{2 \cdot x1}}} \cdot \sqrt[3]{\frac{\left(x2 \cdot 2 - x1\right) + {x1}^2 \cdot 3}{{x1}^2 + 1} - 3}\right)}^3}\right) \cdot \left({x1}^2 + 1\right)\]
    0.6

  13. Removed slow pow expressions

Original test:


(lambda ((x1 default) (x2 default))
  #:name "Rosa's FloatVsDoubleBenchmark"
  (+ x1 (+ (+ (+ (+ (* (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* (* x1 x1) (- (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) 6))) (+ (* x1 x1) 1)) (* (* (* 3 x1) x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))) (* (* x1 x1) x1)) x1) (* 3 (/ (- (- (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))))))