x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}x \cdot \left(\sqrt{e^{y \cdot \left(\log z - t\right) + a \cdot \left(z \cdot \left(-1 - z \cdot \left(z \cdot 0.3333333333333333 + 0.5\right)\right) - b\right)}} \cdot \sqrt{e^{a \cdot \left(z \cdot \left(-1 - z \cdot \left(z \cdot 0.3333333333333333 + 0.5\right)\right) - b\right) + \left(y \cdot \log z - 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
(*
(sqrt
(exp
(+
(* y (- (log z) t))
(* a (- (* z (- -1.0 (* z (+ (* z 0.3333333333333333) 0.5)))) b)))))
(sqrt
(exp
(+
(* a (- (* z (- -1.0 (* z (+ (* z 0.3333333333333333) 0.5)))) b))
(- (* y (log z)) (* 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 * (sqrt(exp((y * (log(z) - t)) + (a * ((z * (-1.0 - (z * ((z * 0.3333333333333333) + 0.5)))) - b)))) * sqrt(exp((a * ((z * (-1.0 - (z * ((z * 0.3333333333333333) + 0.5)))) - b)) + ((y * log(z)) - (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
Results
Initial program 1.7
Taylor expanded around 0 0.4
Simplified0.4
rmApplied add-sqr-sqrt_binary640.4
Simplified0.4
Simplified0.4
rmApplied sub-neg_binary640.4
Applied distribute-lft-in_binary640.5
Simplified0.5
Final simplification0.5
herbie shell --seed 2020231
(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))))))