Average Error: 0.0 → 0.0
Time: 12.3s
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 r15276691 = 200.0;
        double r15276692 = x;
        double r15276693 = y;
        double r15276694 = r15276692 - r15276693;
        double r15276695 = r15276691 * r15276694;
        return r15276695;
}

double f(double x, double y) {
        double r15276696 = y;
        double r15276697 = -r15276696;
        double r15276698 = 200.0;
        double r15276699 = r15276697 * r15276698;
        double r15276700 = x;
        double r15276701 = r15276698 * r15276700;
        double r15276702 = r15276699 + r15276701;
        return r15276702;
}

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