Average Error: 0.0 → 0.0
Time: 8.3s
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 r160130 = 500.0;
        double r160131 = x;
        double r160132 = y;
        double r160133 = r160131 - r160132;
        double r160134 = r160130 * r160133;
        return r160134;
}

double f(double x, double y) {
        double r160135 = 500.0;
        double r160136 = x;
        double r160137 = y;
        double r160138 = r160136 - r160137;
        double r160139 = r160135 * r160138;
        return r160139;
}

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