Average Error: 0.3 → 0.3
Time: 21.8s
Precision: 64
Internal Precision: 320
\[\frac{255}{y} \cdot \left(x - z\right)\]
\[\frac{255}{y} \cdot x + \frac{255}{y} \cdot \left(-z\right)\]

Error

Bits error versus y

Bits error versus x

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

    \[\frac{255}{y} \cdot \left(x - z\right)\]
  2. Using strategy rm
  3. Applied sub-neg0.3

    \[\leadsto \frac{255}{y} \cdot \color{blue}{\left(x + \left(-z\right)\right)}\]
  4. Applied distribute-lft-in0.3

    \[\leadsto \color{blue}{\frac{255}{y} \cdot x + \frac{255}{y} \cdot \left(-z\right)}\]

Runtime

Time bar (total: 21.8s)Debug log

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