\frac{x - y}{z - y} \cdot t\frac{x - y}{z - y} \cdot tdouble f(double x, double y, double z, double t) {
double r302465 = x;
double r302466 = y;
double r302467 = r302465 - r302466;
double r302468 = z;
double r302469 = r302468 - r302466;
double r302470 = r302467 / r302469;
double r302471 = t;
double r302472 = r302470 * r302471;
return r302472;
}
double f(double x, double y, double z, double t) {
double r302473 = x;
double r302474 = y;
double r302475 = r302473 - r302474;
double r302476 = z;
double r302477 = r302476 - r302474;
double r302478 = r302475 / r302477;
double r302479 = t;
double r302480 = r302478 * r302479;
return r302480;
}




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