Average Error: 0.0 → 0.0
Time: 324.0ms
Precision: 64
\[500 \cdot \left(x - y\right)\]
\[500 \cdot \left(x - y\right)\]
500 \cdot \left(x - y\right)
500 \cdot \left(x - y\right)
double f(double x, double y) {
        double r264388 = 500.0;
        double r264389 = x;
        double r264390 = y;
        double r264391 = r264389 - r264390;
        double r264392 = r264388 * r264391;
        return r264392;
}

double f(double x, double y) {
        double r264393 = 500.0;
        double r264394 = x;
        double r264395 = y;
        double r264396 = r264394 - r264395;
        double r264397 = r264393 * r264396;
        return r264397;
}

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

    \[500 \cdot \left(x - y\right)\]
  2. Final simplification0.0

    \[\leadsto 500 \cdot \left(x - y\right)\]

Reproduce

herbie shell --seed 2020045 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, B"
  :precision binary64
  (* 500 (- x y)))