Average Error: 0.0 → 0.0
Time: 14.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 r196968 = 200.0;
        double r196969 = x;
        double r196970 = y;
        double r196971 = r196969 - r196970;
        double r196972 = r196968 * r196971;
        return r196972;
}

double f(double x, double y) {
        double r196973 = x;
        double r196974 = y;
        double r196975 = r196973 - r196974;
        double r196976 = 200.0;
        double r196977 = r196975 * r196976;
        return r196977;
}

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. Using strategy rm
  3. Applied *-commutative0.0

    \[\leadsto \color{blue}{\left(x - y\right) \cdot 200}\]
  4. Final simplification0.0

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

Reproduce

herbie shell --seed 2019326 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, C"
  :precision binary64
  (* 200 (- x y)))