Average Error: 0 → 0
Time: 1.4s
Precision: 64
\[x \cdot 2 - y\]
\[2 \cdot x - y\]
x \cdot 2 - y
2 \cdot x - y
double f(double x, double y) {
        double r12800513 = x;
        double r12800514 = 2.0;
        double r12800515 = r12800513 * r12800514;
        double r12800516 = y;
        double r12800517 = r12800515 - r12800516;
        return r12800517;
}

double f(double x, double y) {
        double r12800518 = 2.0;
        double r12800519 = x;
        double r12800520 = r12800518 * r12800519;
        double r12800521 = y;
        double r12800522 = r12800520 - r12800521;
        return r12800522;
}

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

    \[x \cdot 2 - y\]
  2. Final simplification0

    \[\leadsto 2 \cdot x - y\]

Reproduce

herbie shell --seed 2019200 
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, C"
  (- (* x 2.0) y))