Average Error: 0.4 → 0.4
Time: 31.7s
Precision: 64
Internal precision: 128
\[x + \left(\left(y - x\right) \cdot 6.0\right) \cdot \left(\frac{2.0}{3.0} - z\right)\]
\[x + \left(\left(y - x\right) \cdot 6.0\right) \cdot \left(\frac{2.0}{3.0} - z\right)\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original0.4
Comparison0.4
Herbie0.4
\[ x + \left(\left(y - x\right) \cdot 6.0\right) \cdot \left(\frac{2.0}{3.0} - z\right) \]

Derivation

  1. Initial program 0.4

    \[x + \left(\left(y - x\right) \cdot 6.0\right) \cdot \left(\frac{2.0}{3.0} - z\right)\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 31.7s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(149726718 1418367391 3797268430 3203682338 339126017 432885896)'
(FPCore (x y z)
  :name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, D"

  :target
  (+ x (* (* (- y x) 6.0) (- (/ 2.0 3.0) z)))

  (+ x (* (* (- y x) 6.0) (- (/ 2.0 3.0) z))))