Average Error: 0.0 → 0.0
Time: 9.5s
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 r34611 = 500.0;
        double r34612 = x;
        double r34613 = y;
        double r34614 = r34612 - r34613;
        double r34615 = r34611 * r34614;
        return r34615;
}

double f(double x, double y) {
        double r34616 = 500.0;
        double r34617 = x;
        double r34618 = y;
        double r34619 = r34617 - r34618;
        double r34620 = r34616 * r34619;
        return r34620;
}

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 2019315 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, B"
  :precision binary64
  (* 500 (- x y)))