\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
x + \left(y + \left(z + \left(\left(a - 0.5\right) \cdot b - \left(z \cdot \left(\log \left(\sqrt[3]{t}\right) \cdot 2\right) + z \cdot \log \left({t}^{0.3333333333333333}\right)\right)\right)\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
(+
x
(+
y
(+
z
(-
(* (- a 0.5) b)
(+
(* z (* (log (cbrt t)) 2.0))
(* z (log (pow t 0.3333333333333333)))))))))double code(double x, double y, double z, double t, double a, double b) {
return ((double) (((double) (((double) (((double) (x + y)) + z)) - ((double) (z * ((double) log(t)))))) + ((double) (((double) (a - 0.5)) * b))));
}
double code(double x, double y, double z, double t, double a, double b) {
return ((double) (x + ((double) (y + ((double) (z + ((double) (((double) (((double) (a - 0.5)) * b)) - ((double) (((double) (z * ((double) (((double) log(((double) cbrt(t)))) * 2.0)))) + ((double) (z * ((double) log(((double) pow(t, 0.3333333333333333))))))))))))))));
}




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.3 |
| Herbie | 0.1 |
Initial program Error: 0.1 bits
SimplifiedError: 0.1 bits
rmApplied add-cube-cbrtError: 0.1 bits
Applied log-prodError: 0.1 bits
Applied distribute-lft-inError: 0.1 bits
SimplifiedError: 0.1 bits
rmApplied pow1/3Error: 0.1 bits
Final simplificationError: 0.1 bits
herbie shell --seed 2020203
(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)))