Average Error: 0.2 → 0.2
Time: 13.8s
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 r11724954 = x;
        double r11724955 = y;
        double r11724956 = r11724954 * r11724955;
        double r11724957 = r11724956 * r11724955;
        return r11724957;
}

double f(double x, double y) {
        double r11724958 = x;
        double r11724959 = y;
        double r11724960 = r11724958 * r11724959;
        double r11724961 = r11724960 * r11724959;
        return r11724961;
}

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