Average Error: 0.0 → 0.0
Time: 7.0s
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 r226224 = 200.0;
        double r226225 = x;
        double r226226 = y;
        double r226227 = r226225 - r226226;
        double r226228 = r226224 * r226227;
        return r226228;
}

double f(double x, double y) {
        double r226229 = y;
        double r226230 = -r226229;
        double r226231 = 200.0;
        double r226232 = r226230 * r226231;
        double r226233 = x;
        double r226234 = r226231 * r226233;
        double r226235 = r226232 + r226234;
        return r226235;
}

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. Simplified0.0

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

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

Reproduce

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