\frac{x}{y} \cdot \left(z - t\right) + t\left(\sqrt[3]{z} \cdot \sqrt[3]{z}\right) \cdot \left(\sqrt[3]{z} \cdot \frac{x}{y}\right) + \left(t - t \cdot \frac{x}{y}\right)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 (((cbrt(z) * cbrt(z)) * (cbrt(z) * (x / y))) + (t - (t * (x / y))));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 2.1 |
|---|---|
| Target | 2.2 |
| Herbie | 2.5 |
Initial program 2.1
rmApplied sub-neg2.1
Applied distribute-rgt-in2.1
Applied associate-+l+2.1
Simplified2.1
rmApplied add-cube-cbrt2.5
Applied associate-*l*2.5
Final simplification2.5
herbie shell --seed 2020075
(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))