Average Error: 0.0 → 0.0
Time: 14.6s
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 r200032 = 500.0;
        double r200033 = x;
        double r200034 = y;
        double r200035 = r200033 - r200034;
        double r200036 = r200032 * r200035;
        return r200036;
}

double f(double x, double y) {
        double r200037 = 500.0;
        double r200038 = x;
        double r200039 = y;
        double r200040 = r200038 - r200039;
        double r200041 = r200037 * r200040;
        return r200041;
}

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