Average Error: 0 → 0
Time: 347.0ms
Precision: 64
\[x \cdot 2 - y\]
\[x \cdot 2 - y\]
x \cdot 2 - y
x \cdot 2 - y
double f(double x, double y) {
        double r222686 = x;
        double r222687 = 2.0;
        double r222688 = r222686 * r222687;
        double r222689 = y;
        double r222690 = r222688 - r222689;
        return r222690;
}

double f(double x, double y) {
        double r222691 = x;
        double r222692 = 2.0;
        double r222693 = r222691 * r222692;
        double r222694 = y;
        double r222695 = r222693 - r222694;
        return r222695;
}

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 x \cdot 2 - y\]

Reproduce

herbie shell --seed 2020021 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, C"
  :precision binary64
  (- (* x 2) y))