Average Error: 0.0 → 0.0
Time: 7.8s
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 r199546 = 200.0;
        double r199547 = x;
        double r199548 = y;
        double r199549 = r199547 - r199548;
        double r199550 = r199546 * r199549;
        return r199550;
}

double f(double x, double y) {
        double r199551 = y;
        double r199552 = -r199551;
        double r199553 = 200.0;
        double r199554 = r199552 * r199553;
        double r199555 = x;
        double r199556 = r199553 * r199555;
        double r199557 = r199554 + r199556;
        return r199557;
}

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