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

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

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

Derivation

  1. Initial program 0.0

    \[\left(1.0 - x\right) \cdot y + x \cdot z\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 34.5s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(562167170 3456945912 3070703761 2178515944 276062994 1833254971)'
(FPCore (x y z)
  :name "Diagrams.Color.HSV:lerp  from diagrams-contrib-1.3.0.5"

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

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