x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
x \cdot e^{\log z \cdot y - \mathsf{fma}\left(a, z + b, y \cdot t\right)}
(FPCore (x y z t a b) :precision binary64 (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))
(FPCore (x y z t a b) :precision binary64 (* x (exp (- (* (log z) y) (fma a (+ z b) (* y t))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp((y * (log(z) - t)) + (a * (log(1.0 - z) - b)));
}
double code(double x, double y, double z, double t, double a, double b) {
return x * exp((log(z) * y) - fma(a, (z + b), (y * t)));
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a



Bits error versus b
Initial program 1.9
Simplified0.1
Applied *-un-lft-identity_binary640.1
Applied exp-prod_binary640.1
Simplified0.1
Taylor expanded in z around 0 0.4
Simplified0.3
Taylor expanded in y around inf 0.3
Final simplification0.3
herbie shell --seed 2022077
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, B"
:precision binary64
(* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))