Average Error: 0.0 → 0.0
Time: 10.6s
Precision: 64
\[200.0 \cdot \left(x - y\right)\]
\[\left(x - y\right) \cdot 200.0\]
200.0 \cdot \left(x - y\right)
\left(x - y\right) \cdot 200.0
double f(double x, double y) {
        double r9983986 = 200.0;
        double r9983987 = x;
        double r9983988 = y;
        double r9983989 = r9983987 - r9983988;
        double r9983990 = r9983986 * r9983989;
        return r9983990;
}

double f(double x, double y) {
        double r9983991 = x;
        double r9983992 = y;
        double r9983993 = r9983991 - r9983992;
        double r9983994 = 200.0;
        double r9983995 = r9983993 * r9983994;
        return r9983995;
}

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.0 \cdot \left(x - y\right)\]
  2. Final simplification0.0

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

Reproduce

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