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

Error

Bits error versus x

Bits error versus y

Target

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

Derivation

  1. Initial program 0.0

    \[x \cdot \left(1.0 - y\right)\]
  2. Using strategy rm
  3. Applied sub-neg 0.0

    \[\leadsto x \cdot \color{blue}{\left(1.0 + \left(-y\right)\right)}\]
  4. Applied distribute-lft-in 0.0

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

Runtime

Time bar (total: 11.1s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2293832844 3311874167 256228816 3123221795 2369349835 797531654)'
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, H"

  :target
  (* x (- 1.0 y))

  (* x (- 1.0 y)))