Average Error: 0.0 → 0.0
Time: 17.4s
Precision: 64
Internal precision: 128
\[2.0 \cdot \left(x \cdot x - x \cdot y\right)\]
\[\left(x \cdot 2.0\right) \cdot \left(x - y\right)\]

Error

Bits error versus x

Bits error versus y

Target

Original0.0
Comparison0.0
Herbie0.0
\[ \left(x \cdot 2.0\right) \cdot \left(x - y\right) \]

Derivation

  1. Initial program 0.0

    \[2.0 \cdot \left(x \cdot x - x \cdot y\right)\]
  2. Applied simplify 0.0

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

Runtime

Time bar (total: 17.4s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(1547222451 1852459521 4121866777 1529929135 308323881 2140669382)'
(FPCore (x y)
  :name "Linear.Matrix:fromQuaternion from linear-1.19.1.3, A"

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

  (* 2.0 (- (* x x) (* x y))))