Average Error: 0.0 → 0.0
Time: 7.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 r321960 = 500.0;
        double r321961 = x;
        double r321962 = y;
        double r321963 = r321961 - r321962;
        double r321964 = r321960 * r321963;
        return r321964;
}

double f(double x, double y) {
        double r321965 = 500.0;
        double r321966 = x;
        double r321967 = y;
        double r321968 = r321966 - r321967;
        double r321969 = r321965 * r321968;
        return r321969;
}

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