\frac{x - y}{z - y} \cdot t\frac{x - y}{z - y} \cdot tdouble f(double x, double y, double z, double t) {
double r338187 = x;
double r338188 = y;
double r338189 = r338187 - r338188;
double r338190 = z;
double r338191 = r338190 - r338188;
double r338192 = r338189 / r338191;
double r338193 = t;
double r338194 = r338192 * r338193;
return r338194;
}
double f(double x, double y, double z, double t) {
double r338195 = x;
double r338196 = y;
double r338197 = r338195 - r338196;
double r338198 = z;
double r338199 = r338198 - r338196;
double r338200 = r338197 / r338199;
double r338201 = t;
double r338202 = r338200 * r338201;
return r338202;
}




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 +o rules:numerics
(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))