Average Error: 0.0 → 0.0
Time: 8.4s
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 r7073583 = 500.0;
        double r7073584 = x;
        double r7073585 = y;
        double r7073586 = r7073584 - r7073585;
        double r7073587 = r7073583 * r7073586;
        return r7073587;
}

double f(double x, double y) {
        double r7073588 = x;
        double r7073589 = y;
        double r7073590 = r7073588 - r7073589;
        double r7073591 = 500.0;
        double r7073592 = r7073590 * r7073591;
        return r7073592;
}

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