Average Error: 0.0 → 0.0
Time: 13.5s
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 r9167620 = 200.0;
        double r9167621 = x;
        double r9167622 = y;
        double r9167623 = r9167621 - r9167622;
        double r9167624 = r9167620 * r9167623;
        return r9167624;
}

double f(double x, double y) {
        double r9167625 = x;
        double r9167626 = y;
        double r9167627 = r9167625 - r9167626;
        double r9167628 = 200.0;
        double r9167629 = r9167627 * r9167628;
        return r9167629;
}

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