Average Error: 0.2 → 0.2
Time: 3.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 r201608 = x;
        double r201609 = y;
        double r201610 = r201608 * r201609;
        double r201611 = r201610 * r201609;
        return r201611;
}

double f(double x, double y) {
        double r201612 = x;
        double r201613 = y;
        double r201614 = r201612 * r201613;
        double r201615 = r201614 * r201613;
        return r201615;
}

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