x \cdot \left(1 - x \cdot y\right)
x \cdot 1 + x \cdot \left(-x \cdot y\right)
double f(double x, double y) {
double r80129 = x;
double r80130 = 1.0;
double r80131 = y;
double r80132 = r80129 * r80131;
double r80133 = r80130 - r80132;
double r80134 = r80129 * r80133;
return r80134;
}
double f(double x, double y) {
double r80135 = x;
double r80136 = 1.0;
double r80137 = r80135 * r80136;
double r80138 = y;
double r80139 = r80135 * r80138;
double r80140 = -r80139;
double r80141 = r80135 * r80140;
double r80142 = r80137 + r80141;
return r80142;
}



Bits error versus x



Bits error versus y
Results
Initial program 0.1
rmApplied sub-neg0.1
Applied distribute-lft-in0.1
Final simplification0.1
herbie shell --seed 2020065
(FPCore (x y)
:name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, A"
:precision binary64
(* x (- 1 (* x y))))