Average Error: 0.0 → 0.0
Time: 706.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 r198352 = 500.0;
        double r198353 = x;
        double r198354 = y;
        double r198355 = r198353 - r198354;
        double r198356 = r198352 * r198355;
        return r198356;
}

double f(double x, double y) {
        double r198357 = 500.0;
        double r198358 = x;
        double r198359 = y;
        double r198360 = r198358 - r198359;
        double r198361 = r198357 * r198360;
        return r198361;
}

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