Average Error: 0.0 → 0.0
Time: 5.7s
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 r161585 = 500.0;
        double r161586 = x;
        double r161587 = y;
        double r161588 = r161586 - r161587;
        double r161589 = r161585 * r161588;
        return r161589;
}

double f(double x, double y) {
        double r161590 = 500.0;
        double r161591 = x;
        double r161592 = y;
        double r161593 = r161591 - r161592;
        double r161594 = r161590 * r161593;
        return r161594;
}

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