Average Error: 0.0 → 0.0
Time: 11.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 r201516 = 500.0;
        double r201517 = x;
        double r201518 = y;
        double r201519 = r201517 - r201518;
        double r201520 = r201516 * r201519;
        return r201520;
}

double f(double x, double y) {
        double r201521 = 500.0;
        double r201522 = x;
        double r201523 = y;
        double r201524 = r201522 - r201523;
        double r201525 = r201521 * r201524;
        return r201525;
}

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