Average Error: 0.0 → 0.0
Time: 4.3s
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 r342766 = 500.0;
        double r342767 = x;
        double r342768 = y;
        double r342769 = r342767 - r342768;
        double r342770 = r342766 * r342769;
        return r342770;
}

double f(double x, double y) {
        double r342771 = 500.0;
        double r342772 = x;
        double r342773 = y;
        double r342774 = r342772 - r342773;
        double r342775 = r342771 * r342774;
        return r342775;
}

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