Average Error: 0.0 → 0.0
Time: 12.7s
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 r10100214 = 200.0;
        double r10100215 = x;
        double r10100216 = y;
        double r10100217 = r10100215 - r10100216;
        double r10100218 = r10100214 * r10100217;
        return r10100218;
}

double f(double x, double y) {
        double r10100219 = y;
        double r10100220 = -r10100219;
        double r10100221 = 200.0;
        double r10100222 = r10100220 * r10100221;
        double r10100223 = x;
        double r10100224 = r10100221 * r10100223;
        double r10100225 = r10100222 + r10100224;
        return r10100225;
}

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