Average Error: 0.2 → 0.2
Time: 10.0s
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 r9973111 = x;
        double r9973112 = y;
        double r9973113 = r9973111 * r9973112;
        double r9973114 = r9973113 * r9973112;
        return r9973114;
}

double f(double x, double y) {
        double r9973115 = x;
        double r9973116 = y;
        double r9973117 = r9973115 * r9973116;
        double r9973118 = r9973117 * r9973116;
        return r9973118;
}

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