Average Error: 0.0 → 0.0
Time: 6.0s
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 r5832931 = 200.0;
        double r5832932 = x;
        double r5832933 = y;
        double r5832934 = r5832932 - r5832933;
        double r5832935 = r5832931 * r5832934;
        return r5832935;
}

double f(double x, double y) {
        double r5832936 = y;
        double r5832937 = -r5832936;
        double r5832938 = 200.0;
        double r5832939 = r5832937 * r5832938;
        double r5832940 = x;
        double r5832941 = r5832938 * r5832940;
        double r5832942 = r5832939 + r5832941;
        return r5832942;
}

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