Average Error: 0.0 → 0.0
Time: 11.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 r171930 = 200.0;
        double r171931 = x;
        double r171932 = y;
        double r171933 = r171931 - r171932;
        double r171934 = r171930 * r171933;
        return r171934;
}

double f(double x, double y) {
        double r171935 = x;
        double r171936 = y;
        double r171937 = r171935 - r171936;
        double r171938 = 200.0;
        double r171939 = r171937 * r171938;
        return r171939;
}

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