Average Error: 0.0 → 0.0
Time: 2.0s
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 r262504 = 500.0;
        double r262505 = x;
        double r262506 = y;
        double r262507 = r262505 - r262506;
        double r262508 = r262504 * r262507;
        return r262508;
}

double f(double x, double y) {
        double r262509 = 500.0;
        double r262510 = x;
        double r262511 = y;
        double r262512 = r262510 - r262511;
        double r262513 = r262509 * r262512;
        return r262513;
}

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