Average Error: 0.0 → 0.0
Time: 339.0ms
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 r257351 = 500.0;
        double r257352 = x;
        double r257353 = y;
        double r257354 = r257352 - r257353;
        double r257355 = r257351 * r257354;
        return r257355;
}

double f(double x, double y) {
        double r257356 = 500.0;
        double r257357 = x;
        double r257358 = y;
        double r257359 = r257357 - r257358;
        double r257360 = r257356 * r257359;
        return r257360;
}

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