Average Error: 0.0 → 0.0
Time: 12.7s
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 r211614 = 500.0;
        double r211615 = x;
        double r211616 = y;
        double r211617 = r211615 - r211616;
        double r211618 = r211614 * r211617;
        return r211618;
}

double f(double x, double y) {
        double r211619 = 500.0;
        double r211620 = x;
        double r211621 = y;
        double r211622 = r211620 - r211621;
        double r211623 = r211619 * r211622;
        return r211623;
}

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