\frac{x}{y} \cdot \left(z - t\right) + t\frac{x}{y} \cdot \left(z - t\right) + tdouble f(double x, double y, double z, double t) {
double r377191 = x;
double r377192 = y;
double r377193 = r377191 / r377192;
double r377194 = z;
double r377195 = t;
double r377196 = r377194 - r377195;
double r377197 = r377193 * r377196;
double r377198 = r377197 + r377195;
return r377198;
}
double f(double x, double y, double z, double t) {
double r377199 = x;
double r377200 = y;
double r377201 = r377199 / r377200;
double r377202 = z;
double r377203 = t;
double r377204 = r377202 - r377203;
double r377205 = r377201 * r377204;
double r377206 = r377205 + r377203;
return r377206;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 2.0 |
|---|---|
| Target | 2.2 |
| Herbie | 2.0 |
if (/ x y) < -9.977563095314812e+140 or 4.073187398339556e+236 < (/ x y) Initial program 15.9
rmApplied div-inv16.0
Applied associate-*l*2.8
Simplified2.7
if -9.977563095314812e+140 < (/ x y) < 4.073187398339556e+236Initial program 0.7
Final simplification2.0
herbie shell --seed 2019294
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
:precision binary64
:herbie-target
(if (< z 2.7594565545626922e-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))