Average Error: 0.2 → 0.2
Time: 3.3s
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 r228337 = x;
        double r228338 = y;
        double r228339 = r228337 * r228338;
        double r228340 = r228339 * r228338;
        return r228340;
}

double f(double x, double y) {
        double r228341 = x;
        double r228342 = y;
        double r228343 = r228341 * r228342;
        double r228344 = r228343 * r228342;
        return r228344;
}

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