Average Error: 39.0 → 0
Time: 1.8s
Precision: 64
Internal Precision: 1344
\[\left(x + 1\right) \cdot \left(x + 1\right) - 1\]
\[(x \cdot x + \left(x + x\right))_*\]

Error

Bits error versus x

Try it out

  1. Inputs

  2. Original Output:

    Herbie Output:

Derivation

  1. Initial program 39.0

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

    \[\leadsto \color{blue}{(x \cdot x + \left(x + x\right))_*}\]

Runtime

Time bar (total: 1.8s)Debug logProfile

herbie shell --seed '#(1072361757 3390613284 2339397988 1175251238 145061547 3101881848)' +o rules:numerics
(FPCore (x)
  :name "Expanding a square"
  (- (* (+ x 1) (+ x 1)) 1))