\frac{x - y}{z - y} \cdot t\frac{x - y}{z - y} \cdot tdouble f(double x, double y, double z, double t) {
double r340082 = x;
double r340083 = y;
double r340084 = r340082 - r340083;
double r340085 = z;
double r340086 = r340085 - r340083;
double r340087 = r340084 / r340086;
double r340088 = t;
double r340089 = r340087 * r340088;
return r340089;
}
double f(double x, double y, double z, double t) {
double r340090 = x;
double r340091 = y;
double r340092 = r340090 - r340091;
double r340093 = z;
double r340094 = r340093 - r340091;
double r340095 = r340092 / r340094;
double r340096 = t;
double r340097 = r340095 * r340096;
return r340097;
}




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))