Average Error: 0.0 → 0.0
Time: 963.0ms
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 r15070965 = x;
        double r15070966 = y;
        double r15070967 = 500.0;
        double r15070968 = r15070966 / r15070967;
        double r15070969 = r15070965 + r15070968;
        return r15070969;
}

double f(double x, double y) {
        double r15070970 = y;
        double r15070971 = 500.0;
        double r15070972 = r15070970 / r15070971;
        double r15070973 = x;
        double r15070974 = r15070972 + r15070973;
        return r15070974;
}

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 2019158 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, C"
  (+ x (/ y 500.0)))