Average Error: 0.2 → 0.2
Time: 4.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 r230139 = x;
        double r230140 = y;
        double r230141 = r230139 * r230140;
        double r230142 = r230141 * r230140;
        return r230142;
}

double f(double x, double y) {
        double r230143 = x;
        double r230144 = y;
        double r230145 = r230143 * r230144;
        double r230146 = r230145 * r230144;
        return r230146;
}

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