Average Error: 0.0 → 0.0
Time: 8.2s
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 r16949009 = x;
        double r16949010 = y;
        double r16949011 = 500.0;
        double r16949012 = r16949010 / r16949011;
        double r16949013 = r16949009 + r16949012;
        return r16949013;
}

double f(double x, double y) {
        double r16949014 = y;
        double r16949015 = 500.0;
        double r16949016 = r16949014 / r16949015;
        double r16949017 = x;
        double r16949018 = r16949016 + r16949017;
        return r16949018;
}

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