Average Error: 0.2 → 0.2
Time: 2.9s
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 r236733 = x;
        double r236734 = y;
        double r236735 = r236733 * r236734;
        double r236736 = r236735 * r236734;
        return r236736;
}

double f(double x, double y) {
        double r236737 = x;
        double r236738 = y;
        double r236739 = r236737 * r236738;
        double r236740 = r236739 * r236738;
        return r236740;
}

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