\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\left(\left(\left(\left(x + y\right) + z\right) - \log \left({t}^{\frac{1}{3}} \cdot \sqrt[3]{t}\right) \cdot z\right) - z \cdot \log \left({\left({t}^{\frac{1}{3}}\right)}^{\frac{2}{3}} \cdot {\left(\sqrt[3]{t}\right)}^{\frac{1}{3}}\right)\right) + \left(a - 0.5\right) \cdot bdouble 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 (((((x + y) + z) - (log((pow(t, 0.3333333333333333) * cbrt(t))) * z)) - (z * log((pow(pow(t, 0.3333333333333333), 0.6666666666666666) * pow(cbrt(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-cbrt0.1
Applied log-prod0.1
Applied distribute-lft-in0.1
Applied associate--r+0.1
Simplified0.1
rmApplied pow1/30.1
rmApplied add-cube-cbrt0.1
Simplified0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020053
(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 (pow (log t) 2)) z) (+ 1 (log t)))) (* (- a 0.5) b))
(+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))