Average Error: 29.3 → 0
Time: 616.0ms
Precision: 64
Internal Precision: 1344
\[\left(1 + x\right) - x\]
\[1\]

Error

Bits error versus x

Try it out

  1. Inputs

  2. Original Output:

    Herbie Output:

Derivation

  1. Initial program 29.3

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

    \[\leadsto \color{blue}{1}\]

Runtime

Time bar (total: 616.0ms)Debug logProfile

herbie shell --seed '#(1072361757 3390613284 2339397988 1175251238 145061547 3101881848)' +o rules:numerics
(FPCore (x)
  :name "Cancel like terms"
  (- (+ 1 x) x))