Average Error: 0.1 → 0.2
Time: 7.3s
Precision: 64
Internal Precision: 320
\[\left|\frac{y - x}{x}\right| \cdot 100\]
\[\left|\frac{1}{\frac{x}{y - x}}\right| \cdot 100\]

Error

Bits error versus y

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\left|\frac{y - x}{x}\right| \cdot 100\]
  2. Using strategy rm
  3. Applied *-un-lft-identity0.1

    \[\leadsto \left|\frac{\color{blue}{1 \cdot \left(y - x\right)}}{x}\right| \cdot 100\]
  4. Applied associate-/l*0.2

    \[\leadsto \left|\color{blue}{\frac{1}{\frac{x}{y - x}}}\right| \cdot 100\]
  5. Final simplification0.2

    \[\leadsto \left|\frac{1}{\frac{x}{y - x}}\right| \cdot 100\]

Runtime

Time bar (total: 7.3s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (y x)
  :name "abs((y-x)/x) * 100"
  (* (fabs (/ (- y x) x)) 100))