Average Error: 0.0 → 0.0
Time: 3.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 r241397 = 500.0;
        double r241398 = x;
        double r241399 = y;
        double r241400 = r241398 - r241399;
        double r241401 = r241397 * r241400;
        return r241401;
}

double f(double x, double y) {
        double r241402 = 500.0;
        double r241403 = x;
        double r241404 = y;
        double r241405 = r241403 - r241404;
        double r241406 = r241402 * r241405;
        return r241406;
}

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