Average Error: 0.0 → 0.0
Time: 8.3s
Precision: 64
\[500.0 \cdot \left(x - y\right)\]
\[\left(x - y\right) \cdot 500.0\]
500.0 \cdot \left(x - y\right)
\left(x - y\right) \cdot 500.0
double f(double x, double y) {
        double r15253826 = 500.0;
        double r15253827 = x;
        double r15253828 = y;
        double r15253829 = r15253827 - r15253828;
        double r15253830 = r15253826 * r15253829;
        return r15253830;
}

double f(double x, double y) {
        double r15253831 = x;
        double r15253832 = y;
        double r15253833 = r15253831 - r15253832;
        double r15253834 = 500.0;
        double r15253835 = r15253833 * r15253834;
        return r15253835;
}

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.0 \cdot \left(x - y\right)\]
  2. Final simplification0.0

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

Reproduce

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