Average Error: 0.0 → 0.0
Time: 376.0ms
Precision: 64
\[500 \cdot \left(x - y\right)\]
\[500 \cdot \left(x - y\right)\]
500 \cdot \left(x - y\right)
500 \cdot \left(x - y\right)
double f(double x, double y) {
        double r48956 = 500.0;
        double r48957 = x;
        double r48958 = y;
        double r48959 = r48957 - r48958;
        double r48960 = r48956 * r48959;
        return r48960;
}

double f(double x, double y) {
        double r48961 = 500.0;
        double r48962 = x;
        double r48963 = y;
        double r48964 = r48962 - r48963;
        double r48965 = r48961 * r48964;
        return r48965;
}

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 500 \cdot \left(x - y\right)\]

Reproduce

herbie shell --seed 2020045 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, B"
  :precision binary64
  (* 500 (- x y)))