Average Error: 0.0 → 0.0
Time: 642.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 r316939 = 500.0;
        double r316940 = x;
        double r316941 = y;
        double r316942 = r316940 - r316941;
        double r316943 = r316939 * r316942;
        return r316943;
}

double f(double x, double y) {
        double r316944 = 500.0;
        double r316945 = x;
        double r316946 = y;
        double r316947 = r316945 - r316946;
        double r316948 = r316944 * r316947;
        return r316948;
}

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