\frac{x}{y} \cdot \left(z - t\right) + tt + \left(\sqrt[3]{x} \cdot \sqrt[3]{\frac{1}{y}}\right) \cdot \left({\left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)}^{2} \cdot \left(z - t\right)\right)(FPCore (x y z t) :precision binary64 (+ (* (/ x y) (- z t)) t))
(FPCore (x y z t) :precision binary64 (+ t (* (* (cbrt x) (cbrt (/ 1.0 y))) (* (pow (/ (cbrt x) (cbrt y)) 2.0) (- z t)))))
double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
double code(double x, double y, double z, double t) {
return t + ((cbrt(x) * cbrt(1.0 / y)) * (pow((cbrt(x) / cbrt(y)), 2.0) * (z - t)));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 2.1 |
|---|---|
| Target | 2.3 |
| Herbie | 0.9 |
Initial program 2.1
rmApplied add-cube-cbrt_binary642.6
Applied associate-*l*_binary642.6
Simplified2.6
rmApplied associate-*l*_binary642.6
Simplified2.6
rmApplied cbrt-div_binary642.6
rmApplied div-inv_binary642.6
Applied cbrt-prod_binary640.9
Final simplification0.9
herbie shell --seed 2020232
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
:precision binary64
:herbie-target
(if (< z 2.759456554562692e-282) (+ (* (/ x y) (- z t)) t) (if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) (+ (* (/ x y) (- z t)) t)))
(+ (* (/ x y) (- z t)) t))