Average Error: 0.2 → 0.2
Time: 3.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 r321131 = x;
        double r321132 = y;
        double r321133 = r321131 * r321132;
        double r321134 = r321133 * r321132;
        return r321134;
}

double f(double x, double y) {
        double r321135 = x;
        double r321136 = y;
        double r321137 = r321135 * r321136;
        double r321138 = r321137 * r321136;
        return r321138;
}

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