x \cdot \left(1 - x \cdot y\right)
x \cdot \left(1 - x \cdot y\right) + x \cdot \mathsf{fma}\left(-y, x, y \cdot x\right)double f(double x, double y) {
double r68346 = x;
double r68347 = 1.0;
double r68348 = y;
double r68349 = r68346 * r68348;
double r68350 = r68347 - r68349;
double r68351 = r68346 * r68350;
return r68351;
}
double f(double x, double y) {
double r68352 = x;
double r68353 = 1.0;
double r68354 = y;
double r68355 = r68352 * r68354;
double r68356 = r68353 - r68355;
double r68357 = r68352 * r68356;
double r68358 = -r68354;
double r68359 = r68354 * r68352;
double r68360 = fma(r68358, r68352, r68359);
double r68361 = r68352 * r68360;
double r68362 = r68357 + r68361;
return r68362;
}



Bits error versus x



Bits error versus y
Initial program 0.1
rmApplied add-cube-cbrt0.1
Applied prod-diff0.1
Applied distribute-lft-in0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020039 +o rules:numerics
(FPCore (x y)
:name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, A"
:precision binary64
(* x (- 1 (* x y))))