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 r38931 = 500.0;
        double r38932 = x;
        double r38933 = y;
        double r38934 = r38932 - r38933;
        double r38935 = r38931 * r38934;
        return r38935;
}

double f(double x, double y) {
        double r38936 = 500.0;
        double r38937 = x;
        double r38938 = y;
        double r38939 = r38937 - r38938;
        double r38940 = r38936 * r38939;
        return r38940;
}

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)))