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

Error

Bits error versus x

Derivation

  1. Initial program 38.7

    \[\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: 2.1s)Debug logProfile

herbie shell --seed '#(1070578969 3140398606 632207097 462683394 1189254563 964980650)' +o rules:numerics
(FPCore (x)
  :name "Expanding a square"
  (- (* (+ x 1) (+ x 1)) 1))