Average Error: 0.2 → 0.2
Time: 3.8s
Precision: 64
\[\left(x \cdot y\right) \cdot y\]
\[\left(x \cdot y\right) \cdot y\]
\left(x \cdot y\right) \cdot y
\left(x \cdot y\right) \cdot y
double f(double x, double y) {
        double r191867 = x;
        double r191868 = y;
        double r191869 = r191867 * r191868;
        double r191870 = r191869 * r191868;
        return r191870;
}

double f(double x, double y) {
        double r191871 = x;
        double r191872 = y;
        double r191873 = r191871 * r191872;
        double r191874 = r191873 * r191872;
        return r191874;
}

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.2

    \[\left(x \cdot y\right) \cdot y\]
  2. Final simplification0.2

    \[\leadsto \left(x \cdot y\right) \cdot y\]

Reproduce

herbie shell --seed 2020034 +o rules:numerics
(FPCore (x y)
  :name "Data.HyperLogLog.Config:hll from hyperloglog-0.3.4"
  :precision binary64
  (* (* x y) y))