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 r73532 = x;
double r73533 = 1.0;
double r73534 = y;
double r73535 = r73532 * r73534;
double r73536 = r73533 - r73535;
double r73537 = r73532 * r73536;
return r73537;
}
double f(double x, double y) {
double r73538 = x;
double r73539 = 1.0;
double r73540 = r73538 * r73539;
double r73541 = y;
double r73542 = r73538 * r73541;
double r73543 = -r73542;
double r73544 = r73538 * r73543;
double r73545 = r73540 + r73544;
return r73545;
}



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