Average Error: 0.0 → 0.0
Time: 19.0s
Precision: 64
\[x + \frac{y}{500}\]
\[\frac{y}{500} + x\]
x + \frac{y}{500}
\frac{y}{500} + x
double f(double x, double y) {
        double r17079125 = x;
        double r17079126 = y;
        double r17079127 = 500.0;
        double r17079128 = r17079126 / r17079127;
        double r17079129 = r17079125 + r17079128;
        return r17079129;
}

double f(double x, double y) {
        double r17079130 = y;
        double r17079131 = 500.0;
        double r17079132 = r17079130 / r17079131;
        double r17079133 = x;
        double r17079134 = r17079132 + r17079133;
        return r17079134;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x + \frac{y}{500}\]
  2. Final simplification0.0

    \[\leadsto \frac{y}{500} + x\]

Reproduce

herbie shell --seed 2019179 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, C"
  (+ x (/ y 500.0)))