Average Error: 0.0 → 0.0
Time: 786.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 r256713 = 500.0;
        double r256714 = x;
        double r256715 = y;
        double r256716 = r256714 - r256715;
        double r256717 = r256713 * r256716;
        return r256717;
}

double f(double x, double y) {
        double r256718 = 500.0;
        double r256719 = x;
        double r256720 = y;
        double r256721 = r256719 - r256720;
        double r256722 = r256718 * r256721;
        return r256722;
}

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