Average Error: 0.0 → 0.0
Time: 9.1s
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 r9740586 = 200.0;
        double r9740587 = x;
        double r9740588 = y;
        double r9740589 = r9740587 - r9740588;
        double r9740590 = r9740586 * r9740589;
        return r9740590;
}

double f(double x, double y) {
        double r9740591 = y;
        double r9740592 = -r9740591;
        double r9740593 = 200.0;
        double r9740594 = r9740592 * r9740593;
        double r9740595 = x;
        double r9740596 = r9740593 * r9740595;
        double r9740597 = r9740594 + r9740596;
        return r9740597;
}

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