\left(\left(\log \left(x + y\right) + \log z\right) - t\right) + \left(a - 0.5\right) \cdot \log t
\log \left(\sqrt{x + y}\right) + \left(\log \left(\sqrt{x + y}\right) + \left(\left(\log z - t\right) + \left(a - 0.5\right) \cdot \log t\right)\right)double code(double x, double y, double z, double t, double a) {
return ((double) (((double) (((double) (((double) log(((double) (x + y)))) + ((double) log(z)))) - t)) + ((double) (((double) (a - 0.5)) * ((double) log(t))))));
}
double code(double x, double y, double z, double t, double a) {
return ((double) (((double) log(((double) sqrt(((double) (x + y)))))) + ((double) (((double) log(((double) sqrt(((double) (x + y)))))) + ((double) (((double) (((double) log(z)) - t)) + ((double) (((double) (a - 0.5)) * ((double) log(t))))))))));
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
Initial program 0.3
rmApplied associate--l+0.3
Applied associate-+l+0.3
rmApplied add-sqr-sqrt0.3
Applied log-prod0.3
Applied associate-+l+0.3
Final simplification0.3
herbie shell --seed 2020147
(FPCore (x y z t a)
:name "Numeric.SpecFunctions:logGammaL from math-functions-0.1.5.2"
:precision binary64
(+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))))