Average Error: 0.0 → 0.0
Time: 9.7s
Precision: 64
\[200.0 \cdot \left(x - y\right)\]
\[200.0 \cdot \left(-y\right) + x \cdot 200.0\]
200.0 \cdot \left(x - y\right)
200.0 \cdot \left(-y\right) + x \cdot 200.0
double f(double x, double y) {
        double r11693268 = 200.0;
        double r11693269 = x;
        double r11693270 = y;
        double r11693271 = r11693269 - r11693270;
        double r11693272 = r11693268 * r11693271;
        return r11693272;
}

double f(double x, double y) {
        double r11693273 = 200.0;
        double r11693274 = y;
        double r11693275 = -r11693274;
        double r11693276 = r11693273 * r11693275;
        double r11693277 = x;
        double r11693278 = r11693277 * r11693273;
        double r11693279 = r11693276 + r11693278;
        return r11693279;
}

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

    \[200.0 \cdot \left(x - y\right)\]
  2. Using strategy rm
  3. Applied sub-neg0.0

    \[\leadsto 200.0 \cdot \color{blue}{\left(x + \left(-y\right)\right)}\]
  4. Applied distribute-rgt-in0.0

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

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

Reproduce

herbie shell --seed 2019162 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, C"
  (* 200.0 (- x y)))