Average Error: 0.2 → 0.0
Time: 12.8s
Precision: 64
Internal Precision: 320
\[\left(x - y\right) \cdot \frac{1}{z} + 0.5\]
\[0.5 + \frac{x - y}{z}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\left(x - y\right) \cdot \frac{1}{z} + 0.5\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{0.5 + \frac{x - y}{z}}\]

Runtime

Time bar (total: 12.8s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x y z)
  :name "(x-y)*(1/z)+0.5"
  (+ (* (- x y) (/ 1 z)) 0.5))