Average Error: 0.0 → 0.0
Time: 10.9s
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 r180562 = 500.0;
        double r180563 = x;
        double r180564 = y;
        double r180565 = r180563 - r180564;
        double r180566 = r180562 * r180565;
        return r180566;
}

double f(double x, double y) {
        double r180567 = 500.0;
        double r180568 = x;
        double r180569 = y;
        double r180570 = r180568 - r180569;
        double r180571 = r180567 * r180570;
        return r180571;
}

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