\left(x \cdot \left(y - 1\right) - y \cdot 0.5\right) + 0.918938533204673003
\left(\left(x \cdot y + x \cdot \left(-1\right)\right) - y \cdot 0.5\right) + 0.918938533204673003
double code(double x, double y) {
return (((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673);
}
double code(double x, double y) {
return ((((x * y) + (x * -1.0)) - (y * 0.5)) + 0.918938533204673);
}



Bits error versus x



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