Average Error: 0 → 0
Time: 338.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 r184006 = x;
        double r184007 = 2.0;
        double r184008 = r184006 * r184007;
        double r184009 = y;
        double r184010 = r184008 - r184009;
        return r184010;
}

double f(double x, double y) {
        double r184011 = x;
        double r184012 = 2.0;
        double r184013 = r184011 * r184012;
        double r184014 = y;
        double r184015 = r184013 - r184014;
        return r184015;
}

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