\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 r353384 = x;
double r353385 = y;
double r353386 = r353384 / r353385;
double r353387 = z;
double r353388 = t;
double r353389 = r353387 - r353388;
double r353390 = r353386 * r353389;
double r353391 = r353390 + r353388;
return r353391;
}
double f(double x, double y, double z, double t) {
double r353392 = x;
double r353393 = y;
double r353394 = r353392 / r353393;
double r353395 = z;
double r353396 = t;
double r353397 = r353395 - r353396;
double r353398 = r353394 * r353397;
double r353399 = r353398 + r353396;
return r353399;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 1.8 |
|---|---|
| Target | 2.0 |
| Herbie | 1.8 |
Initial program 1.8
rmApplied sub-neg1.8
Applied distribute-rgt-in1.8
Applied associate-+l+1.8
Simplified1.8
Final simplification1.8
herbie shell --seed 2019303
(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))