Average Error: 0.0 → 0
Time: 2.9s
Precision: 64
Internal Precision: 2112
\[\left(\left(x + y\right) + z\right) - \left(x + \left(y + z\right)\right)\]
\[0\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

  1. Inputs

  2. Original Output:

    Herbie Output:

Derivation

  1. Initial program 0.0

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

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

Runtime

Time bar (total: 2.9s)Debug logProfile

herbie shell --seed '#(1072361757 3390613284 2339397988 1175251238 145061547 3101881848)' +o rules:numerics
(FPCore (x y z)
  :name "Commute and associate"
  (- (+ (+ x y) z) (+ x (+ y z))))