x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}x \cdot e^{y \cdot \left(\log z - t\right) - a \cdot \left(z + b\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 (- (* y (- (log z) t)) (* a (+ z b))))))
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((y * (log(z) - t)) - (a * (z + b)));
}

























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
| Alternative 1 | |
|---|---|
| Error | 1.2 |
| Cost | 65280 |
| Alternative 2 | |
|---|---|
| Error | 1.1 |
| Cost | 58880 |
| Alternative 3 | |
|---|---|
| Error | 1.2 |
| Cost | 52352 |
| Alternative 4 | |
|---|---|
| Error | 25.2 |
| Cost | 45568 |
| Alternative 5 | |
|---|---|
| Error | 10.0 |
| Cost | 40128 |
| Alternative 6 | |
|---|---|
| Error | 1.9 |
| Cost | 39616 |
| Alternative 7 | |
|---|---|
| Error | 28.3 |
| Cost | 39296 |
| Alternative 8 | |
|---|---|
| Error | 0.9 |
| Cost | 33088 |
| Alternative 9 | |
|---|---|
| Error | 0.9 |
| Cost | 33024 |
| Alternative 10 | |
|---|---|
| Error | 34.0 |
| Cost | 26560 |
| Alternative 11 | |
|---|---|
| Error | 23.2 |
| Cost | 26432 |
| Alternative 12 | |
|---|---|
| Error | 25.0 |
| Cost | 20288 |
| Alternative 13 | |
|---|---|
| Error | 2.0 |
| Cost | 20160 |
| Alternative 14 | |
|---|---|
| Error | 10.2 |
| Cost | 13504 |
| Alternative 15 | |
|---|---|
| Error | 2.3 |
| Cost | 13504 |
| Alternative 16 | |
|---|---|
| Error | 29.7 |
| Cost | 13312 |
| Alternative 17 | |
|---|---|
| Error | 19.9 |
| Cost | 13184 |
| Alternative 18 | |
|---|---|
| Error | 7.0 |
| Cost | 7168 |
| Alternative 19 | |
|---|---|
| Error | 20.7 |
| Cost | 6912 |
| Alternative 20 | |
|---|---|
| Error | 61.9 |
| Cost | 64 |
| Alternative 21 | |
|---|---|
| Error | 18.4 |
| Cost | 64 |
| Alternative 22 | |
|---|---|
| Error | 61.9 |
| Cost | 64 |

Initial program 2.0
Taylor expanded around 0 0.5
Simplified0.5
rmApplied add-exp-log_binary64_31060.5
Simplified0.5
Simplified0.5
Final simplification0.5
herbie shell --seed 2021042
(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))))))