Average Error: 0.2 → 0.2
Time: 3.7s
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 r284885 = x;
        double r284886 = y;
        double r284887 = r284885 * r284886;
        double r284888 = r284887 * r284886;
        return r284888;
}

double f(double x, double y) {
        double r284889 = x;
        double r284890 = y;
        double r284891 = r284889 * r284890;
        double r284892 = r284891 * r284890;
        return r284892;
}

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