Average Error: 0.0 → 0.0
Time: 5.6s
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 r15947822 = x;
        double r15947823 = y;
        double r15947824 = 500.0;
        double r15947825 = r15947823 / r15947824;
        double r15947826 = r15947822 + r15947825;
        return r15947826;
}

double f(double x, double y) {
        double r15947827 = y;
        double r15947828 = 500.0;
        double r15947829 = r15947827 / r15947828;
        double r15947830 = x;
        double r15947831 = r15947829 + r15947830;
        return r15947831;
}

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