Average Error: 0.0 → 0.0
Time: 8.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 r14132037 = 200.0;
        double r14132038 = x;
        double r14132039 = y;
        double r14132040 = r14132038 - r14132039;
        double r14132041 = r14132037 * r14132040;
        return r14132041;
}

double f(double x, double y) {
        double r14132042 = y;
        double r14132043 = -r14132042;
        double r14132044 = 200.0;
        double r14132045 = r14132043 * r14132044;
        double r14132046 = x;
        double r14132047 = r14132044 * r14132046;
        double r14132048 = r14132045 + r14132047;
        return r14132048;
}

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. Final simplification0.0

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

Reproduce

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