Average Error: 0.0 → 0.0
Time: 11.9s
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 r16118717 = 200.0;
        double r16118718 = x;
        double r16118719 = y;
        double r16118720 = r16118718 - r16118719;
        double r16118721 = r16118717 * r16118720;
        return r16118721;
}

double f(double x, double y) {
        double r16118722 = x;
        double r16118723 = y;
        double r16118724 = r16118722 - r16118723;
        double r16118725 = 200.0;
        double r16118726 = r16118724 * r16118725;
        return r16118726;
}

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. Final simplification0.0

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

Reproduce

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