Average Error: 0.2 → 0.2
Time: 16.4s
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 r9576999 = x;
        double r9577000 = y;
        double r9577001 = r9576999 * r9577000;
        double r9577002 = r9577001 * r9577000;
        return r9577002;
}

double f(double x, double y) {
        double r9577003 = x;
        double r9577004 = y;
        double r9577005 = r9577003 * r9577004;
        double r9577006 = r9577005 * r9577004;
        return r9577006;
}

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