Average Error: 0.0 → 0.0
Time: 8.0s
Precision: 64
\[500 \cdot \left(x - y\right)\]
\[\left(x - y\right) \cdot 500\]
500 \cdot \left(x - y\right)
\left(x - y\right) \cdot 500
double f(double x, double y) {
        double r12680815 = 500.0;
        double r12680816 = x;
        double r12680817 = y;
        double r12680818 = r12680816 - r12680817;
        double r12680819 = r12680815 * r12680818;
        return r12680819;
}

double f(double x, double y) {
        double r12680820 = x;
        double r12680821 = y;
        double r12680822 = r12680820 - r12680821;
        double r12680823 = 500.0;
        double r12680824 = r12680822 * r12680823;
        return r12680824;
}

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

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

Reproduce

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