Average Error: 0.0 → 0.0
Time: 344.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 r240396 = 500.0;
        double r240397 = x;
        double r240398 = y;
        double r240399 = r240397 - r240398;
        double r240400 = r240396 * r240399;
        return r240400;
}

double f(double x, double y) {
        double r240401 = 500.0;
        double r240402 = x;
        double r240403 = y;
        double r240404 = r240402 - r240403;
        double r240405 = r240401 * r240404;
        return r240405;
}

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)))