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 r57739 = x;
double r57740 = 1.0;
double r57741 = y;
double r57742 = r57739 * r57741;
double r57743 = r57740 - r57742;
double r57744 = r57739 * r57743;
return r57744;
}
double f(double x, double y) {
double r57745 = x;
double r57746 = 1.0;
double r57747 = y;
double r57748 = r57745 * r57747;
double r57749 = r57746 - r57748;
double r57750 = r57745 * r57749;
double r57751 = -r57747;
double r57752 = r57747 * r57745;
double r57753 = fma(r57751, r57745, r57752);
double r57754 = r57745 * r57753;
double r57755 = r57750 + r57754;
return r57755;
}



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