Average Error: 0.0 → 0.0
Time: 1.8s
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 r4614005 = x;
        double r4614006 = y;
        double r4614007 = 500.0;
        double r4614008 = r4614006 / r4614007;
        double r4614009 = r4614005 + r4614008;
        return r4614009;
}

double f(double x, double y) {
        double r4614010 = y;
        double r4614011 = 500.0;
        double r4614012 = r4614010 / r4614011;
        double r4614013 = x;
        double r4614014 = r4614012 + r4614013;
        return r4614014;
}

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