\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\mathsf{fma}\left(z, \log \left(\sqrt[3]{e^{2}} \cdot \frac{\sqrt[3]{e}}{t}\right), \mathsf{fma}\left(a - 0.5, b, x + y\right)\right)
(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 (fma z (log (* (cbrt (exp 2.0)) (/ (cbrt E) t))) (fma (- a 0.5) b (+ x y))))
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 fma(z, log((cbrt(exp(2.0)) * (cbrt(((double) M_E)) / t))), fma((a - 0.5), b, (x + y)));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a




Bits error versus b
| Original | 0.1 |
|---|---|
| Target | 0.4 |
| Herbie | 0.1 |
Initial program 0.1
Simplified0.1
Applied add-log-exp_binary640.1
Applied diff-log_binary640.1
Simplified0.1
Applied *-un-lft-identity_binary640.1
Applied add-cube-cbrt_binary640.1
Applied times-frac_binary640.1
Simplified0.1
Applied add-cbrt-cube_binary640.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2022125
(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)))