Average Error: 0.3 → 0
Time: 463.0ms
Precision: 64
Internal precision: 384
\[d \cdot 10 + d \cdot 20\]
\[d \cdot \left(20 + 10\right)\]

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}{d \cdot \left(20 + 10\right)}\]
  3. Removed slow pow expressions

Runtime

Time bar (total: 463.0ms) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (d)
  :name "FastMath test1"

  :target
  (* d 30)

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