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



Bits error versus x



Bits error versus y
Results
Initial program 0.0
rmApplied sub-neg_binary640.0
Applied distribute-lft-in_binary640.0
Applied associate--l+_binary640.0
Applied associate-+l+_binary640.0
Simplified0.0
rmApplied associate-+r-_binary640.0
Final simplification0.0
herbie shell --seed 2020204
(FPCore (x y)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, A"
:precision binary64
(+ (- (* x (- y 1.0)) (* y 0.5)) 0.918938533204673))