Average Error: 0.0 → 0.0
Time: 957.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 r343376 = 500.0;
        double r343377 = x;
        double r343378 = y;
        double r343379 = r343377 - r343378;
        double r343380 = r343376 * r343379;
        return r343380;
}

double f(double x, double y) {
        double r343381 = 500.0;
        double r343382 = x;
        double r343383 = y;
        double r343384 = r343382 - r343383;
        double r343385 = r343381 * r343384;
        return r343385;
}

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