Average Error: 0.0 → 0.0
Time: 9.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 r8497805 = x;
        double r8497806 = y;
        double r8497807 = 500.0;
        double r8497808 = r8497806 / r8497807;
        double r8497809 = r8497805 + r8497808;
        return r8497809;
}

double f(double x, double y) {
        double r8497810 = y;
        double r8497811 = 500.0;
        double r8497812 = r8497810 / r8497811;
        double r8497813 = x;
        double r8497814 = r8497812 + r8497813;
        return r8497814;
}

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