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 r62446 = x;
double r62447 = 1.0;
double r62448 = y;
double r62449 = r62446 * r62448;
double r62450 = r62447 - r62449;
double r62451 = r62446 * r62450;
return r62451;
}
double f(double x, double y) {
double r62452 = x;
double r62453 = 1.0;
double r62454 = y;
double r62455 = r62452 * r62454;
double r62456 = r62453 - r62455;
double r62457 = r62452 * r62456;
double r62458 = -r62454;
double r62459 = r62454 * r62452;
double r62460 = fma(r62458, r62452, r62459);
double r62461 = r62452 * r62460;
double r62462 = r62457 + r62461;
return r62462;
}



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 2020001 +o rules:numerics
(FPCore (x y)
:name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, A"
:precision binary64
(* x (- 1 (* x y))))