\frac{x}{y} \cdot \left(z - t\right) + tx \cdot \frac{z - t}{y} + tdouble f(double x, double y, double z, double t) {
double r433896 = x;
double r433897 = y;
double r433898 = r433896 / r433897;
double r433899 = z;
double r433900 = t;
double r433901 = r433899 - r433900;
double r433902 = r433898 * r433901;
double r433903 = r433902 + r433900;
return r433903;
}
double f(double x, double y, double z, double t) {
double r433904 = x;
double r433905 = z;
double r433906 = t;
double r433907 = r433905 - r433906;
double r433908 = y;
double r433909 = r433907 / r433908;
double r433910 = r433904 * r433909;
double r433911 = r433910 + r433906;
return r433911;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 2.0 |
|---|---|
| Target | 2.4 |
| Herbie | 6.3 |
if t < -1.0788925605168588e-242 or 2.6094425953641534e+23 < t Initial program 1.1
rmApplied sub-neg1.1
Applied distribute-lft-in1.1
if -1.0788925605168588e-242 < t < 2.6094425953641534e+23Initial program 3.7
rmApplied div-inv3.8
Applied associate-*l*4.1
Simplified4.0
Final simplification6.3
herbie shell --seed 2019298
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
:precision binary64
:herbie-target
(if (< z 2.7594565545626922e-282) (+ (* (/ x y) (- z t)) t) (if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) (+ (* (/ x y) (- z t)) t)))
(+ (* (/ x y) (- z t)) t))