\[x \cdot \left(x \cdot x\right) + x \cdot x\]
Test:
Expression 3, p15
Bits:
128 bits
Bits error versus x
Time: 5.8 s
Input Error: 0.1
Output Error: 0.1
Log:
Profile: 🕒
\(x \cdot \left({x}^2 + x\right)\)
  1. Started with
    \[x \cdot \left(x \cdot x\right) + x \cdot x\]
    0.1
  2. Applied simplify to get
    \[\color{red}{x \cdot \left(x \cdot x\right) + x \cdot x} \leadsto \color{blue}{{x}^2 \cdot \left(1 + x\right)}\]
    0.1
  3. Using strategy rm
    0.1
  4. Applied square-mult to get
    \[\color{red}{{x}^2} \cdot \left(1 + x\right) \leadsto \color{blue}{\left(x \cdot x\right)} \cdot \left(1 + x\right)\]
    0.1
  5. Applied associate-*l* to get
    \[\color{red}{\left(x \cdot x\right) \cdot \left(1 + x\right)} \leadsto \color{blue}{x \cdot \left(x \cdot \left(1 + x\right)\right)}\]
    0.1
  6. Applied simplify to get
    \[x \cdot \color{red}{\left(x \cdot \left(1 + x\right)\right)} \leadsto x \cdot \color{blue}{\left({x}^2 + x\right)}\]
    0.1

Original test:


(lambda ((x default))
  #:name "Expression 3, p15"
  (+ (* x (* x x)) (* x x))
  #:target
  (* (* (+ 1.0 x) x) x))