Average Error: 0.0 → 0.0
Time: 10.7s
Precision: 64
\[200.0 \cdot \left(x - y\right)\]
\[\left(-y\right) \cdot 200.0 + 200.0 \cdot x\]
200.0 \cdot \left(x - y\right)
\left(-y\right) \cdot 200.0 + 200.0 \cdot x
double f(double x, double y) {
        double r15289031 = 200.0;
        double r15289032 = x;
        double r15289033 = y;
        double r15289034 = r15289032 - r15289033;
        double r15289035 = r15289031 * r15289034;
        return r15289035;
}

double f(double x, double y) {
        double r15289036 = y;
        double r15289037 = -r15289036;
        double r15289038 = 200.0;
        double r15289039 = r15289037 * r15289038;
        double r15289040 = x;
        double r15289041 = r15289038 * r15289040;
        double r15289042 = r15289039 + r15289041;
        return r15289042;
}

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-lft-in0.0

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

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

Reproduce

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