Average Error: 0.0 → 0.0
Time: 24.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 r15477511 = 200.0;
        double r15477512 = x;
        double r15477513 = y;
        double r15477514 = r15477512 - r15477513;
        double r15477515 = r15477511 * r15477514;
        return r15477515;
}

double f(double x, double y) {
        double r15477516 = 200.0;
        double r15477517 = y;
        double r15477518 = -r15477517;
        double r15477519 = r15477516 * r15477518;
        double r15477520 = x;
        double r15477521 = r15477520 * r15477516;
        double r15477522 = r15477519 + r15477521;
        return r15477522;
}

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