Average Error: 0.4 → 0.2
Time: 27.2s
Precision: 64
Internal Precision: 320
\[\left(\left(\left(e + d\right) + c\right) + b\right) + a\]
\[e + \left(\left(c + b\right) + \left(d + a\right)\right)\]

Error

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus d

Bits error versus e

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.4
Target0.2
Herbie0.2
\[\left(d + \left(c + \left(a + b\right)\right)\right) + e\]

Derivation

  1. Initial program 0.4

    \[\left(\left(\left(e + d\right) + c\right) + b\right) + a\]
  2. Initial simplification0.2

    \[\leadsto \left(\left(a + d\right) + \left(c + b\right)\right) + e\]
  3. Final simplification0.2

    \[\leadsto e + \left(\left(c + b\right) + \left(d + a\right)\right)\]

Runtime

Time bar (total: 27.2s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.20.20.00.20%
herbie shell --seed 2018295 +o rules:numerics
(FPCore (a b c d e)
  :name "Expression 1, p15"
  :pre (<= 1 a 2 b 4 c 8 d 16 e 32)

  :herbie-target
  (+ (+ d (+ c (+ a b))) e)

  (+ (+ (+ (+ e d) c) b) a))