Average Error: 0.0 → 0.0
Time: 7.9s
Precision: 64
\[500 \cdot \left(x - y\right)\]
\[\left(x - y\right) \cdot 500\]
500 \cdot \left(x - y\right)
\left(x - y\right) \cdot 500
double f(double x, double y) {
        double r207887 = 500.0;
        double r207888 = x;
        double r207889 = y;
        double r207890 = r207888 - r207889;
        double r207891 = r207887 * r207890;
        return r207891;
}

double f(double x, double y) {
        double r207892 = x;
        double r207893 = y;
        double r207894 = r207892 - r207893;
        double r207895 = 500.0;
        double r207896 = r207894 * r207895;
        return r207896;
}

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. Simplified0.0

    \[\leadsto \color{blue}{\left(x - y\right) \cdot 500}\]
  3. Final simplification0.0

    \[\leadsto \left(x - y\right) \cdot 500\]

Reproduce

herbie shell --seed 2019196 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, B"
  (* 500.0 (- x y)))