Average Error: 3.6 → 3.6
Time: 5.9s
Precision: 64
Internal precision: 128
\[\left(a + \left(b + \left(c + d\right)\right)\right) \cdot 2\]
\[\left(a + \left(b + \left(c + d\right)\right)\right) \cdot 2\]

Error

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus d

Target

Original3.6
Comparison3.9
Herbie3.6
\[ \left(a + b\right) \cdot 2 + \left(c + d\right) \cdot 2 \]

Derivation

  1. Initial program 3.6

    \[\left(a + \left(b + \left(c + d\right)\right)\right) \cdot 2\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 5.9s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(1933316642 2722832616 205474688 1334843930 623789764 2875333100)'
(FPCore (a b c d)
  :name "Expression, p6"
  :pre (and (<= -14 a -13) (<= -3 b -2) (<= 3 c 3.5) (<= 12.5 d 13.5))

  :target
  (+ (* (+ a b) 2) (* (+ c d) 2))

  (* (+ a (+ b (+ c d))) 2))