\frac{x - y}{z - y} \cdot t\frac{x - y}{z - y} \cdot tdouble f(double x, double y, double z, double t) {
double r350010 = x;
double r350011 = y;
double r350012 = r350010 - r350011;
double r350013 = z;
double r350014 = r350013 - r350011;
double r350015 = r350012 / r350014;
double r350016 = t;
double r350017 = r350015 * r350016;
return r350017;
}
double f(double x, double y, double z, double t) {
double r350018 = x;
double r350019 = y;
double r350020 = r350018 - r350019;
double r350021 = z;
double r350022 = r350021 - r350019;
double r350023 = r350020 / r350022;
double r350024 = t;
double r350025 = r350023 * r350024;
return r350025;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 2.3 |
|---|---|
| Target | 2.2 |
| Herbie | 2.3 |
Initial program 2.3
rmApplied div-inv2.4
Applied associate-*l*10.8
Simplified10.7
rmApplied clear-num11.4
rmApplied associate-/r/10.8
Applied associate-*r*2.4
Simplified2.3
Final simplification2.3
herbie shell --seed 2019323
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cput from hsignal-0.2.7.1"
:precision binary64
:herbie-target
(/ t (/ (- z y) (- x y)))
(* (/ (- x y) (- z y)) t))