Average Error: 0.0 → 0.0
Time: 11.6s
Precision: 64
\[200 \cdot \left(x - y\right)\]
\[200 \cdot \left(-y\right) + x \cdot 200\]
200 \cdot \left(x - y\right)
200 \cdot \left(-y\right) + x \cdot 200
double f(double x, double y) {
        double r9454764 = 200.0;
        double r9454765 = x;
        double r9454766 = y;
        double r9454767 = r9454765 - r9454766;
        double r9454768 = r9454764 * r9454767;
        return r9454768;
}

double f(double x, double y) {
        double r9454769 = 200.0;
        double r9454770 = y;
        double r9454771 = -r9454770;
        double r9454772 = r9454769 * r9454771;
        double r9454773 = x;
        double r9454774 = r9454773 * r9454769;
        double r9454775 = r9454772 + r9454774;
        return r9454775;
}

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-rgt-in0.0

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

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

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