Average Error: 0.0 → 0.0
Time: 327.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 r346796 = 500.0;
        double r346797 = x;
        double r346798 = y;
        double r346799 = r346797 - r346798;
        double r346800 = r346796 * r346799;
        return r346800;
}

double f(double x, double y) {
        double r346801 = 500.0;
        double r346802 = x;
        double r346803 = y;
        double r346804 = r346802 - r346803;
        double r346805 = r346801 * r346804;
        return r346805;
}

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)))