Average Error: 39.5 → 0.0
Time: 1.1s
Precision: 64
Internal precision: 1408
\[{\left(x + 1\right)}^2 - 1\]
\[x \cdot \left(2 + x\right)\]

Error

Bits error versus x

Derivation

  1. Initial program 39.5

    \[{\left(x + 1\right)}^2 - 1\]
  2. Applied simplify 0.0

    \[\leadsto \color{blue}{x \cdot \left(2 + x\right)}\]
  3. Removed slow pow expressions

Runtime

Time bar (total: 1.1s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (x)
  :name "Expanding a square"
  (- (sqr (+ x 1)) 1))