Average Error: 0.2 → 0.2
Time: 7.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 r4556049 = x;
        double r4556050 = y;
        double r4556051 = r4556049 * r4556050;
        double r4556052 = r4556051 * r4556050;
        return r4556052;
}

double f(double x, double y) {
        double r4556053 = x;
        double r4556054 = y;
        double r4556055 = r4556053 * r4556054;
        double r4556056 = r4556055 * r4556054;
        return r4556056;
}

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