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 r144085 = x;
double r144086 = 1.0;
double r144087 = y;
double r144088 = r144085 * r144087;
double r144089 = r144086 - r144088;
double r144090 = r144085 * r144089;
return r144090;
}
double f(double x, double y) {
double r144091 = x;
double r144092 = 1.0;
double r144093 = y;
double r144094 = r144091 * r144093;
double r144095 = r144092 - r144094;
double r144096 = r144091 * r144095;
double r144097 = -r144093;
double r144098 = r144093 * r144091;
double r144099 = fma(r144097, r144091, r144098);
double r144100 = r144091 * r144099;
double r144101 = r144096 + r144100;
return r144101;
}



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