Average Error: 12.4 → 0.0
Time: 8.5s
Precision: 64
Internal precision: 128
\[\left(\left(x \cdot y - y \cdot y\right) + y \cdot y\right) - y \cdot z\]
\[y \cdot \left(x - z\right)\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original12.4
Comparison0.0
Herbie0.0
\[ \left(x - z\right) \cdot y \]

Derivation

  1. Initial program 12.4

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

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

Runtime

Time bar (total: 8.5s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(909075816 2550183802 2754603377 3597139081 985702773 4178574497)'
(FPCore (x y z)
  :name "Linear.Quaternion:$c/ from linear-1.19.1.3, D"

  :target
  (* (- x z) y)

  (- (+ (- (* x y) (* y y)) (* y y)) (* y z)))