Average Error: 0.0 → 0.0
Time: 10.0s
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 r12862428 = x;
        double r12862429 = y;
        double r12862430 = 500.0;
        double r12862431 = r12862429 / r12862430;
        double r12862432 = r12862428 + r12862431;
        return r12862432;
}

double f(double x, double y) {
        double r12862433 = y;
        double r12862434 = 500.0;
        double r12862435 = r12862433 / r12862434;
        double r12862436 = x;
        double r12862437 = r12862435 + r12862436;
        return r12862437;
}

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