Average Error: 0.0 → 0.0
Time: 10.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 r25990 = 500.0;
        double r25991 = x;
        double r25992 = y;
        double r25993 = r25991 - r25992;
        double r25994 = r25990 * r25993;
        return r25994;
}

double f(double x, double y) {
        double r25995 = 500.0;
        double r25996 = x;
        double r25997 = y;
        double r25998 = r25996 - r25997;
        double r25999 = r25995 * r25998;
        return r25999;
}

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