\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\left(\left(\left(\left(z + y\right) + x\right) - z \cdot \left(2 \cdot \log \left(\sqrt[3]{t}\right)\right)\right) - z \cdot \log \left({t}^{0.3333333333333333}\right)\right) + \left(a - 0.5\right) \cdot b(FPCore (x y z t a b) :precision binary64 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
(FPCore (x y z t a b) :precision binary64 (+ (- (- (+ (+ z y) x) (* z (* 2.0 (log (cbrt t))))) (* z (log (pow t 0.3333333333333333)))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
}
double code(double x, double y, double z, double t, double a, double b) {
return ((((z + y) + x) - (z * (2.0 * log(cbrt(t))))) - (z * log(pow(t, 0.3333333333333333)))) + ((a - 0.5) * 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
| Original | 0.1 |
|---|---|
| Target | 0.4 |
| Herbie | 0.1 |
Initial program 0.1
rmApplied add-cube-cbrt_binary64_89790.1
Applied log-prod_binary64_90300.1
Applied distribute-rgt-in_binary64_88940.1
Applied associate--r+_binary64_88800.1
Simplified0.1
rmApplied pow1/3_binary64_90260.1
Final simplification0.1
herbie shell --seed 2021098
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(+ (+ (+ x y) (/ (* (- 1.0 (pow (log t) 2.0)) z) (+ 1.0 (log t)))) (* (- a 0.5) b))
(+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))