Average Error: 0.0 → 0.0
Time: 24.6s
Precision: 64
Internal Precision: 384
\[x \cdot \left(x \cdot x\right) + x \cdot x\]
\[x \cdot x + {x}^{3}\]

Error

Bits error versus x

Target

Original0.0
Target0.0
Herbie0.0
\[\left(\left(1.0 + x\right) \cdot x\right) \cdot x\]

Derivation

  1. Initial program 0.0

    \[x \cdot \left(x \cdot x\right) + x \cdot x\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{\left(x \cdot x\right) \cdot \left(1 + x\right)}\]
  3. Using strategy rm
  4. Applied distribute-lft-in0.0

    \[\leadsto \color{blue}{\left(x \cdot x\right) \cdot 1 + \left(x \cdot x\right) \cdot x}\]
  5. Applied simplify0.0

    \[\leadsto \color{blue}{x \cdot x} + \left(x \cdot x\right) \cdot x\]
  6. Applied simplify0.0

    \[\leadsto x \cdot x + \color{blue}{{x}^{3}}\]
  7. Removed slow pow expressions.

Runtime

Time bar (total: 24.6s)Debug logProfile

herbie shell --seed '#(1063282112 2455465480 4141627379 3773598652 1647277307 776739644)' 
(FPCore (x)
  :name "Expression 3, p15"
  :pre (<= 0 x 2)

  :herbie-target
  (* (* (+ 1.0 x) x) x)

  (+ (* x (* x x)) (* x x)))