x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
x \cdot {e}^{\left(\log z \cdot y - \mathsf{fma}\left(a, z + b, y \cdot t\right)\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 (pow E (- (* (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 * pow(((double) M_E), ((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 2.3
Simplified0.3
Applied *-un-lft-identity_binary640.3
Applied exp-prod_binary640.3
Simplified0.3
Taylor expanded in z around 0 0.8
Simplified0.5
Final simplification0.5
herbie shell --seed 2022088
(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))))))