Average Error: 0.2 → 0.2
Time: 14.2s
Precision: 64
Internal precision: 128
\[\left(x \cdot x\right) \cdot \left(3.0 - x \cdot 2.0\right)\]
\[x \cdot \left(x \cdot \left(3.0 - x \cdot 2.0\right)\right)\]

Error

Bits error versus x

Target

Original0.2
Comparison0.2
Herbie0.2
\[ x \cdot \left(x \cdot \left(3.0 - x \cdot 2.0\right)\right) \]

Derivation

  1. Initial program 0.2

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

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

Runtime

Time bar (total: 14.2s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(306752662 2756626915 1063187812 3382963700 1067144996 2197408242)'
(FPCore (x)
  :name "Data.Spline.Key:interpolateKeys from smoothie-0.4.0.2"

  :target
  (* x (* x (- 3.0 (* x 2.0))))

  (* (* x x) (- 3.0 (* x 2.0))))