Average Error: 0.0 → 0.0
Time: 2.8s
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 r242322 = 500.0;
        double r242323 = x;
        double r242324 = y;
        double r242325 = r242323 - r242324;
        double r242326 = r242322 * r242325;
        return r242326;
}

double f(double x, double y) {
        double r242327 = 500.0;
        double r242328 = x;
        double r242329 = y;
        double r242330 = r242328 - r242329;
        double r242331 = r242327 * r242330;
        return r242331;
}

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 2020060 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, B"
  :precision binary64
  (* 500 (- x y)))