Average Error: 0.0 → 0.0
Time: 9.1s
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 r216468 = 200.0;
        double r216469 = x;
        double r216470 = y;
        double r216471 = r216469 - r216470;
        double r216472 = r216468 * r216471;
        return r216472;
}

double f(double x, double y) {
        double r216473 = x;
        double r216474 = y;
        double r216475 = r216473 - r216474;
        double r216476 = 200.0;
        double r216477 = r216475 * r216476;
        return r216477;
}

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