Average Error: 0.0 → 0.0
Time: 8.4s
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 r10725258 = 200.0;
        double r10725259 = x;
        double r10725260 = y;
        double r10725261 = r10725259 - r10725260;
        double r10725262 = r10725258 * r10725261;
        return r10725262;
}

double f(double x, double y) {
        double r10725263 = y;
        double r10725264 = -r10725263;
        double r10725265 = 200.0;
        double r10725266 = r10725264 * r10725265;
        double r10725267 = x;
        double r10725268 = r10725265 * r10725267;
        double r10725269 = r10725266 + r10725268;
        return r10725269;
}

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)))