Average Error: 0.0 → 0.0
Time: 5.8s
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 r212647 = 500.0;
        double r212648 = x;
        double r212649 = y;
        double r212650 = r212648 - r212649;
        double r212651 = r212647 * r212650;
        return r212651;
}

double f(double x, double y) {
        double r212652 = 500.0;
        double r212653 = x;
        double r212654 = y;
        double r212655 = r212653 - r212654;
        double r212656 = r212652 * r212655;
        return r212656;
}

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