Average Error: 0.0 → 0.0
Time: 7.7s
Precision: 64
\[200 \cdot \left(x - y\right)\]
\[\left(x - y\right) \cdot 200\]
200 \cdot \left(x - y\right)
\left(x - y\right) \cdot 200
double f(double x, double y) {
        double r217478 = 200.0;
        double r217479 = x;
        double r217480 = y;
        double r217481 = r217479 - r217480;
        double r217482 = r217478 * r217481;
        return r217482;
}

double f(double x, double y) {
        double r217483 = x;
        double r217484 = y;
        double r217485 = r217483 - r217484;
        double r217486 = 200.0;
        double r217487 = r217485 * r217486;
        return r217487;
}

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. Simplified0.0

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

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

Reproduce

herbie shell --seed 2019195 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, C"
  (* 200.0 (- x y)))