Average Error: 0.0 → 0.0
Time: 8.2s
Precision: 64
Internal precision: 128
\[\frac{x - y}{x}\]
\[1 - \frac{y}{x}\]

Error

Bits error versus x

Bits error versus y

Target

Original0.0
Comparison0.0
Herbie0.0
\[ 1 - \frac{y}{x} \]

Derivation

  1. Initial program 0.0

    \[\frac{x - y}{x}\]
  2. Applied taylor 0.0

    \[\leadsto 1 - \frac{y}{x}\]
  3. Taylor expanded around 0 0.0

    \[\leadsto \color{blue}{1 - \frac{y}{x}}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 8.2s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(4243979100 2905904968 2466955658 3297518023 4291929876 1053214234)'
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, E"

  :target
  (- 1 (/ y x))

  (/ (- x y) x))