Average Error: 9.9 → 0.2
Time: 11.4s
Precision: 64
Internal precision: 128
\[\left(\left(x \cdot 3.0\right) \cdot x\right) \cdot y\]
\[\left(x \cdot 3.0\right) \cdot \left(x \cdot y\right)\]

Error

Bits error versus x

Bits error versus y

Target

Original9.9
Comparison0.2
Herbie0.2
\[ \left(x \cdot 3.0\right) \cdot \left(x \cdot y\right) \]

Derivation

  1. Initial program 9.9

    \[\left(\left(x \cdot 3.0\right) \cdot x\right) \cdot y\]
  2. Using strategy rm
  3. Applied associate-*l* 0.2

    \[\leadsto \color{blue}{\left(x \cdot 3.0\right) \cdot \left(x \cdot y\right)}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 11.4s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(263602253 2432890376 2671253157 3906596563 465175999 4257043092)'
(FPCore (x y)
  :name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, A"

  :target
  (* (* x 3.0) (* x y))

  (* (* (* x 3.0) x) y))