Average Error: 0.2 → 0.2
Time: 3.5s
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 r215254 = x;
        double r215255 = y;
        double r215256 = r215254 * r215255;
        double r215257 = r215256 * r215255;
        return r215257;
}

double f(double x, double y) {
        double r215258 = x;
        double r215259 = y;
        double r215260 = r215258 * r215259;
        double r215261 = r215260 * r215259;
        return r215261;
}

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 2019353 +o rules:numerics
(FPCore (x y)
  :name "Data.HyperLogLog.Config:hll from hyperloglog-0.3.4"
  :precision binary64
  (* (* x y) y))