Average Error: 0 → 0
Time: 648.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 r137608 = x;
        double r137609 = 2.0;
        double r137610 = r137608 * r137609;
        double r137611 = y;
        double r137612 = r137610 - r137611;
        return r137612;
}

double f(double x, double y) {
        double r137613 = x;
        double r137614 = 2.0;
        double r137615 = r137613 * r137614;
        double r137616 = y;
        double r137617 = r137615 - r137616;
        return r137617;
}

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