Average Error: 0.0 → 0.0
Time: 6.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 r11725246 = 500.0;
        double r11725247 = x;
        double r11725248 = y;
        double r11725249 = r11725247 - r11725248;
        double r11725250 = r11725246 * r11725249;
        return r11725250;
}

double f(double x, double y) {
        double r11725251 = x;
        double r11725252 = y;
        double r11725253 = r11725251 - r11725252;
        double r11725254 = 500.0;
        double r11725255 = r11725253 * r11725254;
        return r11725255;
}

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