Average Error: 0.0 → 0.0
Time: 2.1s
Precision: 64
Internal precision: 128
\[x + x \cdot x\]
\[x + {x}^2\]

Error

Bits error versus x

Target

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

Derivation

  1. Initial program 0.0

    \[x + x \cdot x\]
  2. Applied simplify 0.0

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

Runtime

Time bar (total: 2.1s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2987560114 675471300 191120389 3707997452 3553513275 4131367883)'
(FPCore (x)
  :name "Expression 2, p15"
  :pre (<= 0 x 2)

  :target
  (* (+ 1.0 x) x)

  (+ x (* x x)))