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

Error

Bits error versus x

Target

Original0.0
Comparison0.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 simplify 0.0

    \[\leadsto \color{blue}{\left(x \cdot x\right) \cdot \left(1 + x\right)}\]
  3. Applied taylor 0.0

    \[\leadsto {x}^2 + {x}^{3}\]
  4. Taylor expanded around 0 0.0

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

Runtime

Time bar (total: 9.3s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2048021964 2866624463 117063981 1206766074 1472416935 698051457)'
(FPCore (x)
  :name "Expression 3, p15"
  :pre (<= 0 x 2)

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

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