Average Error: 0.0 → 0.0
Time: 14.4s
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 r160856 = 500.0;
        double r160857 = x;
        double r160858 = y;
        double r160859 = r160857 - r160858;
        double r160860 = r160856 * r160859;
        return r160860;
}

double f(double x, double y) {
        double r160861 = 500.0;
        double r160862 = x;
        double r160863 = y;
        double r160864 = r160862 - r160863;
        double r160865 = r160861 * r160864;
        return r160865;
}

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