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 r85852 = x;
double r85853 = 1.0;
double r85854 = y;
double r85855 = r85852 * r85854;
double r85856 = r85853 - r85855;
double r85857 = r85852 * r85856;
return r85857;
}
double f(double x, double y) {
double r85858 = x;
double r85859 = 1.0;
double r85860 = y;
double r85861 = r85858 * r85860;
double r85862 = r85859 - r85861;
double r85863 = r85858 * r85862;
double r85864 = -r85860;
double r85865 = r85860 * r85858;
double r85866 = fma(r85864, r85858, r85865);
double r85867 = r85858 * r85866;
double r85868 = r85863 + r85867;
return r85868;
}



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