Average Error: 0.0 → 0.0
Time: 4.0s
Precision: 64
\[x + \frac{y}{500.0}\]
\[\frac{y}{500.0} + x\]
x + \frac{y}{500.0}
\frac{y}{500.0} + x
double f(double x, double y) {
        double r12066031 = x;
        double r12066032 = y;
        double r12066033 = 500.0;
        double r12066034 = r12066032 / r12066033;
        double r12066035 = r12066031 + r12066034;
        return r12066035;
}

double f(double x, double y) {
        double r12066036 = y;
        double r12066037 = 500.0;
        double r12066038 = r12066036 / r12066037;
        double r12066039 = x;
        double r12066040 = r12066038 + r12066039;
        return r12066040;
}

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.0}\]
  2. Final simplification0.0

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

Reproduce

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