Average Error: 0.2 → 0.2
Time: 11.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 r11172144 = x;
        double r11172145 = y;
        double r11172146 = r11172144 * r11172145;
        double r11172147 = r11172146 * r11172145;
        return r11172147;
}

double f(double x, double y) {
        double r11172148 = x;
        double r11172149 = y;
        double r11172150 = r11172148 * r11172149;
        double r11172151 = r11172150 * r11172149;
        return r11172151;
}

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