Average Error: 0.2 → 0.2
Time: 1.8s
Precision: binary64
\[\]
\[\]

Error

Bits error versus x

Bits error versus y

Target

Original0.2
Target0.2
Herbie0.2
\[\]

Derivation

  1. Initial program 0.2

    \[\]
  2. Taylor expanded around 0 0.2

    \[\leadsto \]
  3. Simplified0.2

    \[\leadsto \]
  4. Using strategy rm
  5. Applied sub-neg0.2

    \[\leadsto \]
  6. Applied distribute-lft-in0.2

    \[\leadsto \]
  7. Final simplification0.2

    \[\leadsto \]

Reproduce

herbie shell --seed 2020181 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, A"
  :precision binary64

  :herbie-target
  (* y (- (* x 3.0) 0.41379310344827586))

  (* (* (- x (/ 16.0 116.0)) 3.0) y))