Average Error: 0.2 → 0.2
Time: 14.6s
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 r12279112 = x;
        double r12279113 = y;
        double r12279114 = r12279112 * r12279113;
        double r12279115 = r12279114 * r12279113;
        return r12279115;
}

double f(double x, double y) {
        double r12279116 = x;
        double r12279117 = y;
        double r12279118 = r12279116 * r12279117;
        double r12279119 = r12279118 * r12279117;
        return r12279119;
}

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