Average Error: 0.0 → 0.0
Time: 1.1s
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 r307986 = 500.0;
        double r307987 = x;
        double r307988 = y;
        double r307989 = r307987 - r307988;
        double r307990 = r307986 * r307989;
        return r307990;
}

double f(double x, double y) {
        double r307991 = 500.0;
        double r307992 = x;
        double r307993 = y;
        double r307994 = r307992 - r307993;
        double r307995 = r307991 * r307994;
        return r307995;
}

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