Average Error: 0 → 0
Time: 324.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 r207362 = x;
        double r207363 = 2.0;
        double r207364 = r207362 * r207363;
        double r207365 = y;
        double r207366 = r207364 - r207365;
        return r207366;
}

double f(double x, double y) {
        double r207367 = x;
        double r207368 = 2.0;
        double r207369 = r207367 * r207368;
        double r207370 = y;
        double r207371 = r207369 - r207370;
        return r207371;
}

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