Average Error: 0.0 → 0.0
Time: 9.4s
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 r14512664 = 200.0;
        double r14512665 = x;
        double r14512666 = y;
        double r14512667 = r14512665 - r14512666;
        double r14512668 = r14512664 * r14512667;
        return r14512668;
}

double f(double x, double y) {
        double r14512669 = 200.0;
        double r14512670 = y;
        double r14512671 = -r14512670;
        double r14512672 = r14512669 * r14512671;
        double r14512673 = x;
        double r14512674 = r14512673 * r14512669;
        double r14512675 = r14512672 + r14512674;
        return r14512675;
}

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