Average Error: 0.2 → 0.2
Time: 8.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 r201770 = x;
        double r201771 = y;
        double r201772 = r201770 * r201771;
        double r201773 = r201772 * r201771;
        return r201773;
}

double f(double x, double y) {
        double r201774 = x;
        double r201775 = y;
        double r201776 = r201774 * r201775;
        double r201777 = r201776 * r201775;
        return r201777;
}

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