\frac{x - y}{z - y} \cdot t\frac{x - y}{z - y} \cdot tdouble f(double x, double y, double z, double t) {
double r398145 = x;
double r398146 = y;
double r398147 = r398145 - r398146;
double r398148 = z;
double r398149 = r398148 - r398146;
double r398150 = r398147 / r398149;
double r398151 = t;
double r398152 = r398150 * r398151;
return r398152;
}
double f(double x, double y, double z, double t) {
double r398153 = x;
double r398154 = y;
double r398155 = r398153 - r398154;
double r398156 = z;
double r398157 = r398156 - r398154;
double r398158 = r398155 / r398157;
double r398159 = t;
double r398160 = r398158 * r398159;
return r398160;
}




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