Average Error: 0.0 → 0.0
Time: 2.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 r342275 = 500.0;
        double r342276 = x;
        double r342277 = y;
        double r342278 = r342276 - r342277;
        double r342279 = r342275 * r342278;
        return r342279;
}

double f(double x, double y) {
        double r342280 = 500.0;
        double r342281 = x;
        double r342282 = y;
        double r342283 = r342281 - r342282;
        double r342284 = r342280 * r342283;
        return r342284;
}

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