Average Error: 0.0 → 0.0
Time: 7.0s
Precision: 64
\[200 \cdot \left(x - y\right)\]
\[\left(-y\right) \cdot 200 + 200 \cdot x\]
200 \cdot \left(x - y\right)
\left(-y\right) \cdot 200 + 200 \cdot x
double f(double x, double y) {
        double r215552 = 200.0;
        double r215553 = x;
        double r215554 = y;
        double r215555 = r215553 - r215554;
        double r215556 = r215552 * r215555;
        return r215556;
}

double f(double x, double y) {
        double r215557 = y;
        double r215558 = -r215557;
        double r215559 = 200.0;
        double r215560 = r215558 * r215559;
        double r215561 = x;
        double r215562 = r215559 * r215561;
        double r215563 = r215560 + r215562;
        return r215563;
}

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 \cdot \left(x - y\right)\]
  2. Using strategy rm
  3. Applied sub-neg0.0

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

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

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

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

Reproduce

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