Average Error: 0.0 → 0.0
Time: 838.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 r264787 = 500.0;
        double r264788 = x;
        double r264789 = y;
        double r264790 = r264788 - r264789;
        double r264791 = r264787 * r264790;
        return r264791;
}

double f(double x, double y) {
        double r264792 = 500.0;
        double r264793 = x;
        double r264794 = y;
        double r264795 = r264793 - r264794;
        double r264796 = r264792 * r264795;
        return r264796;
}

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