Average Error: 0.2 → 0.2
Time: 9.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 r16586469 = x;
        double r16586470 = y;
        double r16586471 = r16586469 * r16586470;
        double r16586472 = r16586471 * r16586470;
        return r16586472;
}

double f(double x, double y) {
        double r16586473 = x;
        double r16586474 = y;
        double r16586475 = r16586473 * r16586474;
        double r16586476 = r16586475 * r16586474;
        return r16586476;
}

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