Average Error: 0.0 → 0.0
Time: 27.2s
Precision: 64
\[500.0 \cdot \left(x - y\right)\]
\[\left(x - y\right) \cdot 500.0\]
500.0 \cdot \left(x - y\right)
\left(x - y\right) \cdot 500.0
double f(double x, double y) {
        double r12522861 = 500.0;
        double r12522862 = x;
        double r12522863 = y;
        double r12522864 = r12522862 - r12522863;
        double r12522865 = r12522861 * r12522864;
        return r12522865;
}

double f(double x, double y) {
        double r12522866 = x;
        double r12522867 = y;
        double r12522868 = r12522866 - r12522867;
        double r12522869 = 500.0;
        double r12522870 = r12522868 * r12522869;
        return r12522870;
}

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

    \[500.0 \cdot \left(x - y\right)\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2019165 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, B"
  (* 500.0 (- x y)))