Average Error: 0.3 → 0
Time: 2.1s
Precision: 64
Internal precision: 128
\[d \cdot 10 + d \cdot 20\]
\[\left(20 + 10\right) \cdot d\]

Error

Bits error versus d

Target

Original0.3
Comparison0
Herbie0
\[ d \cdot 30 \]

Derivation

  1. Initial program 0.3

    \[d \cdot 10 + d \cdot 20\]
  2. Applied simplify 0

    \[\leadsto \color{blue}{\left(20 + 10\right) \cdot d}\]
  3. Removed slow pow expressions

Runtime

Time bar (total: 2.1s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3153497917 2203036424 1591529197 868423363 1015557176 3860169142)'
(FPCore (d)
  :name "FastMath test1"

  :target
  (* d 30)

  (+ (* d 10) (* d 20)))