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 r98071 = x;
double r98072 = 1.0;
double r98073 = y;
double r98074 = r98071 * r98073;
double r98075 = r98072 - r98074;
double r98076 = r98071 * r98075;
return r98076;
}
double f(double x, double y) {
double r98077 = x;
double r98078 = 1.0;
double r98079 = y;
double r98080 = r98077 * r98079;
double r98081 = r98078 - r98080;
double r98082 = r98077 * r98081;
double r98083 = -r98079;
double r98084 = r98079 * r98077;
double r98085 = fma(r98083, r98077, r98084);
double r98086 = r98077 * r98085;
double r98087 = r98082 + r98086;
return r98087;
}



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