\left(x \cdot y\right) \cdot y
y \cdot \left(x \cdot y\right)
(FPCore (x y) :precision binary64 (* (* x y) y))
(FPCore (x y) :precision binary64 (* y (* x y)))
double code(double x, double y) {
return ((double) (((double) (x * y)) * y));
}
double code(double x, double y) {
return ((double) (y * ((double) (x * y))));
}



Bits error versus x



Bits error versus y
Results
Initial program Error: 0.2 bits
Final simplificationError: 0.2 bits
herbie shell --seed 2020204
(FPCore (x y)
:name "Data.HyperLogLog.Config:hll from hyperloglog-0.3.4"
:precision binary64
(* (* x y) y))