Average Error: 0 → 0
Time: 517.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 r181285 = x;
        double r181286 = 2.0;
        double r181287 = r181285 * r181286;
        double r181288 = y;
        double r181289 = r181287 - r181288;
        return r181289;
}

double f(double x, double y) {
        double r181290 = x;
        double r181291 = 2.0;
        double r181292 = r181290 * r181291;
        double r181293 = y;
        double r181294 = r181292 - r181293;
        return r181294;
}

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 2019303 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, C"
  :precision binary64
  (- (* x 2) y))