\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\log t - \mathsf{fma}\left(x, -\log y, y + z\right)
(FPCore (x y z t) :precision binary64 (+ (- (- (* x (log y)) y) z) (log t)))
(FPCore (x y z t) :precision binary64 (- (log t) (fma x (- (log y)) (+ y z))))
double code(double x, double y, double z, double t) {
return (((x * log(y)) - y) - z) + log(t);
}
double code(double x, double y, double z, double t) {
return log(t) - fma(x, -log(y), (y + z));
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Initial program 0.1
Simplified0.1
Applied add-cube-cbrt_binary641.3
Taylor expanded in y around inf 0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2022077
(FPCore (x y z t)
:name "Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, A"
:precision binary64
(+ (- (- (* x (log y)) y) z) (log t)))